PC Review


Reply
Thread Tools Rate Thread

Commandline to delete directory

 
 
SF
Guest
Posts: n/a
 
      11th Oct 2006
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


 
Reply With Quote
 
 
 
 
Roberto Baggio
Guest
Posts: n/a
 
      11th Oct 2006
rd <dirname>

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

"SF" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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
>



 
Reply With Quote
 
Tim Slattery
Guest
Posts: n/a
 
      11th Oct 2006
"Roberto Baggio" <(E-Mail Removed)> wrote:

>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).

--
Tim Slattery
MS MVP(DTS)
(E-Mail Removed)
 
Reply With Quote
 
Joe Wright
Guest
Posts: n/a
 
      11th Oct 2006
SF wrote:
> 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.

--
Joe =o)
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
System.IO.Directory.Delete Throws "the directory is not empty" codeboy Microsoft ASP .NET 1 8th Jun 2009 01:08 PM
Commandline to delete registry entry - possible ? dingdongdingding@yahoo.com Windows XP General 1 4th Jun 2009 03:01 AM
Cannot delete a directory. Error message is directory name is invalid erik Microsoft Windows 2000 5 27th May 2004 02:23 PM
How to delete a directory with vb.net if the directory contains long paths ? Arjan van den Noort Microsoft VB .NET 0 13th Nov 2003 11:20 AM
commandline for delete history or cookies? Jeff Malka Windows XP General 1 23rd Sep 2003 05:52 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:06 PM.