There are a number of useful switches for cmd.exe.  Try doing a cmd /?
At the command prompt.

Cmd /c executes a command using the cmd.exe interpreter and then closes
the command window. 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
John Deretich
Sent: Wednesday, November 12, 2003 11:55 AM
To: 'Roy Sprague'
Cc: Perl-Win32-Admin-Request (E-mail)
Subject: RE: removing nonempty directories

Hi Roy,

I was just wondering.
I know rd is remove directory with
a /s and a /q option, but what is cmd /c?

thanks,

John

-----Original Message-----
From: Roy Sprague [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 12, 2003 11:39 AM
To: 'John Deretich'; Perl-Win32-Admin-Request (E-mail)
Subject: RE: removing nonempty directories


`cmd /c rd /s /q j:\\test\\test1`;

-----Original Message-----
From: John Deretich [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 12, 2003 1:56 PM
To: Perl-Win32-Admin-Request (E-mail)
Subject: removing nonempty directories

Hello,

I just wanted to find out if anyone knows how to remove a non empty
directory. Say for example, J:\test\test1.....
just remove only test1 and any subdirectories below it, not the entire
contents of the J: Drive.


thanks,

John
_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to