I tested 'rmdir' with the following and it had no problem removing the tree.

  rmdir /Q /S "New Folder"

Note that the quotes must be there.

It will fail if anything is accessing the directory.  For instance if
explorer is looking at a sub directory and you run the command from the
command line, explorer will block the deletion.


> Behalf Of Daniel Herskowitz
>
>
> I have a PERL script running on NT that deletes directories whether they
> are full or empty if they are beyond a certain age. The normal Perl
> function rmdir only works if directory is empty. If you append -r
> to it (as
> you would in UNIX) the command fails. The NT system call of rmdir /Q /S
> does not work if there are spaces in the directory names. Any
> suggestions???
>


---
You are currently subscribed to perl-win32-users as: [archive@jab.org]
To unsubscribe, forward this message to
         [EMAIL PROTECTED]
For non-automated Mailing List support, send email to  
         [EMAIL PROTECTED]

Reply via email to