|
Home > Archive > General Discussion > September 2004 > Batch File Blues
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| Exit12 2004-09-19, 3:09 pm |
| I'm trying to create a batch file, that will delete all files and folders within a certain directory.
eg.. I may want to delete all files / folders within the All Users / Temp directory. Is there a way to delete all folders and subdirectories at once, like you can do with files. To delete files I have
del /q *.*, to delete files, but I'm unable to delete all directories within the temp folder.
It seems I have to delete them one by one using their name.... I would have thought rmdir /q /s *.* would have done it but this doesn't work. Surely it can't be that hard to remove one or more whole directories with a simple command.
Im running XP Pro | |
| jkhnwspec 2004-09-19, 7:00 pm |
| Have a look at XXCOPY.
Then item 9 on this page. | |
| Exit12 2004-09-20, 5:50 am |
| Thanks a lot jkhnwspec. Didn't know about that! Works like a charm  | |
| jkhnwspec 2004-09-20, 12:23 pm |
| Glad I could help.  |
|
|
|
|