B barryb New Member Joined Jan 16, 2007 Messages 6 Reaction score 0 Jan 22, 2007 #1 I can't seem to be able to write a batch file that removes all files and folders within a certain folder. I've tried del and deltree without success. The files disappear but not the folders. Please help.
I can't seem to be able to write a batch file that removes all files and folders within a certain folder. I've tried del and deltree without success. The files disappear but not the folders. Please help.
W werner Expert Member Joined Jun 27, 2005 Messages 3,401 Reaction score 11 Jan 22, 2007 #2 this should blast it away deltree /y foldername the /y doesnt prompt for confirmation for xp, use RD /S /Q foldername if you have tried that already, then please elaborate what you have and havent tried and i can help more also, what OS are you using? Last edited: Jan 22, 2007
this should blast it away deltree /y foldername the /y doesnt prompt for confirmation for xp, use RD /S /Q foldername if you have tried that already, then please elaborate what you have and havent tried and i can help more also, what OS are you using?
B barryb New Member Joined Jan 16, 2007 Messages 6 Reaction score 0 Jan 22, 2007 #3 have tried del d:\stuff\*.* /q/s del /y d:\stuff\*.* deltree /y d:\stuff deltree /y d:\stuff\ deltree /y d:\stuff\*.* folders stay behind no matter what I have tried. os = win 2003 server.
have tried del d:\stuff\*.* /q/s del /y d:\stuff\*.* deltree /y d:\stuff deltree /y d:\stuff\ deltree /y d:\stuff\*.* folders stay behind no matter what I have tried. os = win 2003 server.
Kloon Expert Member Joined Nov 6, 2006 Messages 1,674 Reaction score 9 Location 172.0.0.0/8 Jan 22, 2007 #4 Try running the file with an account that has administrator rights.