Solved

FTP Site TAGGED - Cant delete directories -HELP!

Posted on 2004-10-04
5
368 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 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

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

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

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 …
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 an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

726 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