Cmd Prompt questions

Dross

New Member
Got a couple of command prompt questions:

First, there is a folder on my desktop that I want to get rid of, Windows wouldn't let me, so I went into the command prompt and did it manually doing the following:

c:\documents and settings\USER\desktop\>del f

("f" is the name of the folder I want to delete)

Unfortunately, I could only get the contents of the folder to delete...not the folder itself. It got rid of the contents that I wanted deleted, but it's kind of annoying that I've got a worthless empty folder sitting on my desktop.


My other question: what is the difference between "command.com" and "cmd.exe" ??

Thanks! :D
 
The command to delete a folder is rmdir.

Cmd.exe handles long file names, while command.exe does not; other than that, they are the same. Use Cmd.exe...quicker to type also :P
 
command.com is left over from DOS, it is it's command interpreter. In Win2K/XP it is still available for compatibility and is emulated. To remove a directory use rmdir or rd, deltree no longer exists
 
Cromewell said:
To remove a directory use rmdir or rd, deltree no longer exists
Oops, sorry, my mistake... :o
I used it on Win9x and I forgot that on Win2k and XP it's not supported any more.
 
You can write:
%SYSDRV%\DOCUME~1\%USERNAME%\desktop\
instead of
c:\documents and settings\USER\desktop\
 
Back
Top