?
Solved

FTP Site TAGGED - Cant delete directories -HELP!

Posted on 2004-10-04
5
Medium Priority
?
373 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 86

Accepted Solution

by:
jkr earned 2000 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you build your web application in Visual Studio you'll get at least a few binaries, or .DLL, files in your bin folder. However, there is more compiling to be done. Normally this would happen when an ASP.NET resource within the web site is request…
Issue: Unstable cursor in Windows XP and Windows runs extremely slow in that any click will bring up the Hour glass (sometimes for several seconds before giving you what you want) . Troubleshooting Process and the FINAL FIX: This issue see…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Suggested Courses
Course of the Month12 days, 11 hours left to enroll

777 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