i use

@result=`rmdir \"$dir\" /q /s`;

and it works well...





"Daniel Herskowitz" <[EMAIL PROTECTED]> on 05/01/2000 01:57:56 PM

Please respond to "Daniel Herskowitz" <[EMAIL PROTECTED]>




To:   "Perl-Win32-Users Mailing List"
      <[EMAIL PROTECTED]>
cc:    (bcc: Patrick MANNION/us/socgen)
Subject:  rmdir or system ("rmdir /Q /s")




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:
[EMAIL PROTECTED]
To unsubscribe, forward this message to
         [EMAIL PROTECTED]
For non-automated Mailing List support, send email to
         [EMAIL PROTECTED]






 **************************************************************************
The information contained herein is confidential and is intended solely
for the addressee(s).  It shall not be construed as a recommendation to
buy or sell any security.  Any unauthorized access, use, reproduction,
disclosure or dissemination is prohibited.

Neither SOCIETE GENERALE nor any of its subsidiaries or affiliates
shall assume any legal liability or responsibility for any incorrect,
misleading or altered information contained herein.
 **************************************************************************




---
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