PC Review


Reply
Thread Tools Rate Thread

Cannot delete a directory. Error message is directory name is invalid

 
 
erik
Guest
Posts: n/a
 
      13th May 2004
I'm having problems in deleting a directory which i never
made...for some reasons, a directory named " . "
appeared on one of my drives and under that directory
there were too many subdirectories which are named com1,
com2, lpt1, lpt2, etc....and all the subdirectories
contains a folder named tagg by belfou. what should i do
to delete the whole subdirectory " . " permanently?
and i wann know also how i got it, thanks
 
Reply With Quote
 
 
 
 
Guest
Posts: n/a
 
      13th May 2004

>-----Original Message-----
>I'm having problems in deleting a directory which i never
>made...for some reasons, a directory named " . "
>appeared on one of my drives and under that directory
>there were too many subdirectories which are named com1,
>com2, lpt1, lpt2, etc....and all the subdirectories
>contains a folder named tagg by belfou. what should i do
>to delete the whole subdirectory " . " permanently?
>and i wann know also how i got it, thanks
>.
>


Check for viruses.
 
Reply With Quote
 
George Hester
Guest
Posts: n/a
 
      14th May 2004
This is likely not a virus. You have had your ports scanned one was open to receive and so you received. The issue here is leading spaces in the folder. The fix is to remove all the contents of all the folders. Then you have to get the exact name of the folders that means the number of spaces.

http://support.microsoft.com/default...;EN-US;Q320081


Then working from the bottom up using the command prompt you use:

rd \\?\c:\path_to_file_that contains a trailing space.txt

intead of

del "\\?\c:\path_to_file_that contains a trailing space.txt "

--
George Hester
__________________________________
"erik" <(E-Mail Removed)> wrote in message news:ced101c43932$d8e682f0$(E-Mail Removed)...
> I'm having problems in deleting a directory which i never
> made...for some reasons, a directory named " . "
> appeared on one of my drives and under that directory
> there were too many subdirectories which are named com1,
> com2, lpt1, lpt2, etc....and all the subdirectories
> contains a folder named tagg by belfou. what should i do
> to delete the whole subdirectory " . " permanently?
> and i wann know also how i got it, thanks

 
Reply With Quote
 
Noob23
Guest
Posts: n/a
 
      26th May 2004
You got hacked. It sounds like somehow someone got into
your system through an open port and created these
folders. Hackers use folder names like these so that you
can't delete them.

It happened to me too (through an insecure FTProot
directory) and I still cannot figure out how to delete
them. I removed all the files inside and I'm still
searching for a way to delete the folders. They can't be
deleted because they are named with Win NT proprietary
system names like "Com" and the like.

First step is to close the port you were hacked from and
make sure your box is secure.

Good luck and if you find the answer to deleting them,
please let me know. Thanks.

(E-Mail Removed)

>-----Original Message-----
>I'm having problems in deleting a directory which i never
>made...for some reasons, a directory named " . "
>appeared on one of my drives and under that directory
>there were too many subdirectories which are named com1,
>com2, lpt1, lpt2, etc....and all the subdirectories
>contains a folder named tagg by belfou. what should i do
>to delete the whole subdirectory " . " permanently?
>and i wann know also how i got it, thanks
>.
>

 
Reply With Quote
 
Gary Smith
Guest
Posts: n/a
 
      27th May 2004
Noob23 <(E-Mail Removed)> wrote:
> It happened to me too (through an insecure FTProot
> directory) and I still cannot figure out how to delete
> them. I removed all the files inside and I'm still
> searching for a way to delete the folders. They can't be
> deleted because they are named with Win NT proprietary
> system names like "Com" and the like.


Maybe this will help:

From a command prompt try;

del \\.\Drive:\directory\filename
(Note the period between \\ and \)

Another alternative is:

del "\\?\Drive:\directory\filename"

Also,

dir /x
and try deleting them using their 8.3 short names.

The same techniques work for folders, substituting "RD" or "RD /s" for
"del".

--
Gary L. Smith (E-Mail Removed)
Columbus, Ohio
 
Reply With Quote
 
George Hester
Guest
Posts: n/a
 
      27th May 2004
That's the answer Gary. Hopefully your explanation was clearer then mine.

--
George Hester
__________________________________
"Gary Smith" <(E-Mail Removed)> wrote in message news:ug1Kr$(E-Mail Removed)...
> Noob23 <(E-Mail Removed)> wrote:
> > It happened to me too (through an insecure FTProot
> > directory) and I still cannot figure out how to delete
> > them. I removed all the files inside and I'm still
> > searching for a way to delete the folders. They can't be
> > deleted because they are named with Win NT proprietary
> > system names like "Com" and the like.

>
> Maybe this will help:
>
> From a command prompt try;
>
> del \\.\Drive:\directory\filename
> (Note the period between \\ and \)
>
> Another alternative is:
>
> del "\\?\Drive:\directory\filename"
>
> Also,
>
> dir /x
> and try deleting them using their 8.3 short names.
>
> The same techniques work for folders, substituting "RD" or "RD /s" for
> "del".
>
> --
> Gary L. Smith (E-Mail Removed)
> Columbus, Ohio

 
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
Wiindows Explorer Search: Invalid Directory message. Marz Windows Vista General Discussion 1 6th Oct 2009 02:55 PM
Invalid Active Directory Pathname error Jennifer Q Microsoft Windows 2000 Active Directory 1 21st Jan 2006 11:35 PM
Cannot delete, the directory name is invalid David Tong Windows XP General 1 20th Feb 2005 10:38 PM
cannot delete [filename]: The directory name is invalid. John Temmerman Microsoft Windows 2000 7 28th Jul 2004 01:18 AM
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


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:25 AM.