dos command to delete directory

  • Thread starter Thread starter Matt
  • Start date Start date
M

Matt

what is the DOS command to delete the directory. Let's say I have a
directory called C:\hello, and there are subdirectories under C:\hello also.
I want to delete all files and folders

I tried rmdir C:\hello, and it has error "the directory is not empty."
 
Matt said:
what is the DOS command to delete the directory. Let's say I have a
directory called C:\hello, and there are subdirectories under
C:\hello also. I want to delete all files and folders

I tried rmdir C:\hello, and it has error "the directory is not empty."

c:\> deltree c:\hello
 
Matt said:
what is the DOS command to delete the directory. Let's say I have a
directory called C:\hello, and there are subdirectories under C:\hello also.
I want to delete all files and folders

I tried rmdir C:\hello, and it has error "the directory is not empty."

Use the /S switch. Type rd /? at a prompt.

Terry
 
Matt, for future reference, the W2k Start/Help/Contents/Reference
has the list, definition, and syntax of all the built-in MSDOS
commands.
 
Back
Top