batch file

barryb

New Member
Joined
Jan 16, 2007
Messages
6
Reaction score
0
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.
 
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:
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.
 
Top
Sign up to the MyBroadband newsletter
X