Forum Home
Press F1
 
Thread ID: 53122 2005-01-08 01:47:00 CMD del command not working hamstar (4) Press F1
Post ID Timestamp Content User
311911 2005-01-08 01:47:00 Hey guys,

I wanna delete a folder via a batch file, but no matter what I type in, the folder ever deletes.

Whether I do it in /q mode or /f or not, it doesnt work.

However it deletes fine from explorer...

any ideas?
hamstar (4)
311912 2005-01-08 02:07:00 If you are trying to delete the directory, DEL will probably behave like the DOS one, and refuse to delete the directory unless it is empty.

I am fortunate enough to not have XP, but has it got DELTREE? If so, DELTREE /Y directory_name should work.
Graham L (2)
311913 2005-01-08 02:14:00 no... no deltree dammit..

i got 2k by the way.

i hate xp with a passion.
hamstar (4)
311914 2005-01-08 02:31:00 well try two levels:
del directory_name\*.*
del directory_name (or is it rmdir ?) :nerd:
Graham L (2)
311915 2005-01-08 03:30:00 well try two levels:
del directory_name\*.*
del directory_name (or is it rmdir ?) :nerd: another true statement made in jest rmdir does work in xp home (XP the linux clone :lol: )
hamster try typing rmdir/? see if win 2k has it also
beama (111)
311916 2005-01-08 03:40:00 omfg... its rmdir.... here i am thinking that was a linux command lol!

cheers.

hamstar
hamstar (4)
311917 2005-01-09 01:44:00 All the DOS commands were copied from Unix (which copied them from DEC mini OSes) becuase the Unix and CPM and DOS people had all used OS/8, RT11, etc, on DEC machines. Graham L (2)
1