Solved

FTP Site TAGGED - Cant delete directories -HELP!

Posted on 2004-10-04
5
357 Views
Last Modified: 2012-08-13
Over the weekend my ftp server was tagged by some warez group.
I now have a directory structure that I can't seem to delete.
I'm running XP Pro with NTFS and I have run scan disk etc.
I've taken ownership of the directory structure and all sub directories by going to the top directory and applying permissions there because I cant apply permissions directly to any subdirectories they put there....they dont have a security tab (just general and customize tab)

When I try to delete a sub folder such as lpt2, it says "Cannot Delete lpt2 : Cannot find the specified path. Make sure you specify the correct path."
I found that "lpt1" etc is a windows system file name and windows won't let you delete it ( I think). so thats another problem.
Also If I try to delete other folders in the structure it says "Cannot Delete lpt1 : The parameter is incorrect"

Any suggestions would be appreciated (can it be done while in windows?)
0
Comment
Question by:Matrix1000
  • 3
  • 2
5 Comments
 
LVL 86

Accepted Solution

by:
jkr earned 500 total points
ID: 12219969
See http://support.microsoft.com/default.aspx?scid=kb;en-us;315226 ("How to Remove Files with Reserved Names in Windows XP"). The scoop is:

If the file was created on a file allocation table (FAT) partition, you may be able to delete the file under MS-DOS by using standard command line utilities (such as DEL) with wildcard (*) characters, for example:
DEL PR?.*

-or-

DEL LPT?.*

These commands do not work on an NTFS file system partition. For this case another option would be to use a syntax that bypasses the normal reserved-word checks altogether. You may be able to delete any file by using a command like this:
DEL \\.\drive letter:\path\file name

For example:
DEL \\.\c:\somedir\aux

If the name in the file system appears as a directory, you may be able to delete any directory by using a command like this:
RD \\.\drive letter:\path\directory name

For example:
RD \\.\c:\somedir\aux

0
 
LVL 1

Author Comment

by:Matrix1000
ID: 12221868
K this is fun... but they seem to have used the lpt1 trick so I can't delete.

I tried..
X:\>RD \\.\C:\ftproot\F 4959 \lpt3 \com2 \com1 \aux0 \aux0 \null \ \lpt3 \com3
 \lpt1 \aux0 \com1 \com1 \ \lpt1 \ \lpt1 \aux \com3 \com3 \com2 \lpt2
The system cannot find the file specified.
The system cannot find the file specified.
The system cannot find the file specified.
The system cannot find the file specified.
The directory name is invalid.
The system cannot find the file specified.
The system cannot find the file specified.
The system cannot find the file specified.
The process cannot access the file because it is being used by another process
The system cannot find the file specified.
The system cannot find the file specified.
The process cannot access the file because it is being used by another process
The parameter is incorrect.
The system cannot find the file specified.
The directory name is invalid.
The directory name is invalid.
The process cannot access the file because it is being used by another process
The parameter is incorrect.
The process cannot access the file because it is being used by another process
The parameter is incorrect.
The directory name is invalid.
The system cannot find the file specified.
The system cannot find the file specified.
The system cannot find the file specified.
The system cannot find the file specified.

:\
0
 
LVL 86

Expert Comment

by:jkr
ID: 12221896
>>:\>RD \\.\C:\ftproot\F 4959 \lpt3

If the path contains spaces, you need to use

RD "\\.\C:\ftproot\F 4959 \lpt3"
0
 
LVL 1

Author Comment

by:Matrix1000
ID: 12222416
Hmm that worked for one directory structure but not for this one...

C:\ftproot>RD "\\.\C:\ftproot\scanned \by \JDX \tagged \by \Nibbler \uploads for \TGF \uppedBy \Nibbler\(c) Copyright - Taggerboy 2002 "
The system cannot find the file specified.
0
 
LVL 1

Author Comment

by:Matrix1000
ID: 12222788
nevermind...I forgot the trailing slash like

C:\ftproot>RD "\\.\C:\ftproot\scanned \by \JDX \tagged \by \Nibbler \uploads for
 \TGF \uppedBy \Nibbler\(c) Copyright - Taggerboy 2002 \ "

Thanks!
0

Featured Post

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Join & Write a Comment

Suggested Solutions

Can you find a fax from a vendor you saved a decade ago in seconds? Have you ever cursed your PC under your breath during an audit because you couldn’t find the requested statement or driver history?  If you answered no to the first question or yes …
It is only natural that we all want our PCs to be in good working order, improved system performance, so that is exactly how programs are advertised to entice. They say things like:            •      PC crashes? Get registry cleaner to repair it!    …
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now