Commandline to delete directory

  • Thread starter Thread starter SF
  • Start date Start date
S

SF

Hi,
What is the command line for deleting directories in windopws XP?

I was called by a friend to help solving Computer problem (XP) in a Computer
training school. Some students who is more capable of wirting programming
has spreaded an execute file in which it create directories and
subdirectories (eg Myfile00001, myfile00002 etc..). This process would carry
on until we run out of disk space and would after the boot record. On
restart PC cannot go to windows.

TIA

SF
 
rd <dirname>

To remove the directory and all files/directories within it:
rd <dirname> /s
 
Roberto Baggio said:
rd <dirname>

To remove the directory and all files/directories within it:
rd <dirname> /s

If there are any files or subdirectories in the directory to be
removed, "rd" will tell you about that and ask if you really want to
delete it anyway. If you are *really, really sure* and you don't want
to see this prompt, you can use the /q switch. And all switches should
be before the name of the directory to be removed.

For the complete documentation, open a command console window and type
"rd /?" (without the quotes, of course).
 
SF said:
Hi,
What is the command line for deleting directories in windopws XP?

I was called by a friend to help solving Computer problem (XP) in a Computer
training school. Some students who are more capable of writing programming
have spread an execute file in which it creates directories and
subdirectories (eg Myfile00001, myfile00002 etc..). This process would carry
on until we run out of disk space and would alter the boot record. On
restart PC cannot go to windows.

TIA

SF

So you could type

RD /s /q C:\Myfile000*

to remove all folders that start off "myfile000" in the root folder.
Change the path accordingly.

Boot to Safe Mode to find and remove the malware.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top