Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to delete directories - no matter what!?

Status
Not open for further replies.

farleybarnstorm

IS-IT--Management
Apr 29, 2002
3
0
0
US
First, yes this is my own fault, anyway I setup an FTP server on my machine for testing and some hackers got into it. They have uploaded a ton of stuff (basically filling my HD) and I cannot delete it!

They have used ASCII characters to make it so Windows cannot understand the directory name, so it simply says it cannot delete the files. Stuff like having spaces in the names which are actually the ASCII character for space, etc. A real pain in the hind-end because they made these things 20 directories deep!


Anyway my question is - is there a way, either by a special program, or whatever, to delete a directory no matter what? I will never figure out how they named these directories, so unless I can find some way to delete them I will be stuck with a re-format!

Please help
 
Well I found a way to fix this. If you go to the DOS prompt you can use RMDIR with the /S switch to remove even non-empty directories.

This works great on the directories that had normal names but a few of these twerps used directory names with ASCII spaces in them, so I had to go up a directory (or several) until I got to a normally named directory.

Unfortunately that meant I had to move some of my real files into another directory (from c:\temp to c:\temp1) so I could use RMDIR to take out the whole TEMP directory and all subfolders.


Oh well at least it worked it just was a pain.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top