Hi,guys
how can I delete a directory?
I just know how to delete all files in a directory,for instance:
deleteFile>C:\temp\*.*
but there is no way to delete the directory C:\temp with all it's contents ?
Thanks in advance!
how can I delete a directory?
Moderators: Dorian (MJT support), JRL
-
- Junior Coder
- Posts: 28
- Joined: Wed Jun 08, 2005 2:48 pm
Let>RP_WAIT=1
Let>RP_WINDOWMODE=0
Run>cmd.exe /c rmdir %dirname% /s /q
If using Win95/98 replace cmd.exe with command.com
Let>RP_WINDOWMODE=0
Run>cmd.exe /c rmdir %dirname% /s /q
If using Win95/98 replace cmd.exe with command.com
MJT Net Support
[email protected]
[email protected]
-
- Macro Veteran
- Posts: 252
- Joined: Fri Apr 15, 2005 8:32 am
Unfortunately, this command does not work for me and does not delete the directory (regardless of whether it's empty which it was).
Let>dirname=C:\test
Let>RP_WAIT=1
Let>RP_WINDOWMODE=0
wait>1
Run>cmd.exe rmdir /c %dirname% /s /q
I also tried using:
Run>cmd.exe rmdir /c C:\test /s /q
I'm using Windows XP SP2 and MS 8.0.1e trial.
Thanks,
FC
EDIT: Never mind. I found the retardation of my ways. "Run>cmd.exe rmdir /c" should be "Run>cmd.exe /c rmdir". Sorry!
Let>dirname=C:\test
Let>RP_WAIT=1
Let>RP_WINDOWMODE=0
wait>1
Run>cmd.exe rmdir /c %dirname% /s /q
I also tried using:
Run>cmd.exe rmdir /c C:\test /s /q
I'm using Windows XP SP2 and MS 8.0.1e trial.
Thanks,
FC
EDIT: Never mind. I found the retardation of my ways. "Run>cmd.exe rmdir /c" should be "Run>cmd.exe /c rmdir". Sorry!