PC Review


Reply
Thread Tools Rate Thread

Delete directory name that contains special characters

 
 
Mr Bubba
Guest
Posts: n/a
 
      2nd Feb 2008
I have an empty directory that contains special/unreadable characters in its
name. It has been impossible so far to find a way to delete it, and this
oddball directory name is causing my backup software to fail when I do a full
system backup. Worse yet, this particular directory name resides in the
following Windows XP system directory structure:

C:/Documents and Settings/All Users/Start Menu/Programs

I've tried every variation of rm, rmdir, dir /x, and cut/delete from Windows
Explorer, etc. I even tried completely reloading Windows XP from my original
OS/Drivers CDs. I have a Gateway PC and it appears that this malformed
directory may be part of a Phone Tools application installation that was part
of my original Gateway OS/Drivers CD package. Maybe it's a virus that was on
the orginal CDs. I'm not sure if that's the case, and even if so, I can't
find a way to prevent it from loading when I reload Windows XP.

Any suggestions on how to get rid of this crazy directory from a Windows
system directory?

Brian

 
Reply With Quote
 
 
 
 
John
Guest
Posts: n/a
 
      2nd Feb 2008

"Mr Bubba" <Mr (E-Mail Removed)> wrote in message
news:38719D25-D3E4-4A70-B66C-(E-Mail Removed)...
>I have an empty directory that contains special/unreadable characters in
>its
> name. It has been impossible so far to find a way to delete it, and this
> oddball directory name is causing my backup software to fail when I do a
> full
> system backup. Worse yet, this particular directory name resides in the
> following Windows XP system directory structure:
>
> C:/Documents and Settings/All Users/Start Menu/Programs
>
> I've tried every variation of rm, rmdir, dir /x, and cut/delete from
> Windows
> Explorer, etc. I even tried completely reloading Windows XP from my
> original
> OS/Drivers CDs. I have a Gateway PC and it appears that this malformed
> directory may be part of a Phone Tools application installation that was
> part
> of my original Gateway OS/Drivers CD package. Maybe it's a virus that was
> on
> the orginal CDs. I'm not sure if that's the case, and even if so, I can't
> find a way to prevent it from loading when I reload Windows XP.
>
> Any suggestions on how to get rid of this crazy directory from a Windows
> system directory?
>
> Brian
>

Try to rename it to a valid directory name.
Select the Programs directory so that the problem directory is
in the right pane of Windows Explorer. Click on the directory to
highlight it. Wait 5 seconds and click on the directory name again.
Press the delete key.
Type XXX
Hit the enter key.
If the rename worked, you can now delete the directory.
If it didn't work, open a command prompt window and change
to the programs directory.
Do a remove directory specifying the directory name bracketed in
double quotes. Every place that there is a special character
in the name, use a question mark in place of the special
character. (? is the ambiguous single character, * is the
ambiguous string character).



 
Reply With Quote
 
Mr Bubba
Guest
Posts: n/a
 
      2nd Feb 2008
John,

Thank you for your speedy reply!

Renaming the directory is not possible. The following error messages are
returned when trying to do so:

* Cannot rename file: Cannot read from source file or disk

I get the same message when trying to delete this directory via Windows
Explorer too except replace "rename" above with "delete."

I've tried the DOS command approach too with every conceivable wildcard
combination.

The following error message is always returned:

* The filename, directory name, or volume label syntax is incorrect.

Here are a couple of other interesting points about this directory:

When viewing this directory's info using Properties from Windows Explorer,
the file name looks like this: P^ONE^~1 where the carrot symbols are
actually squares, (but I can't quickly figure out how to put a square in this
response!). The same directory name format is displayed in the list when
selecting Start followed by All Programs.

If I run a dir /x from DOS, I notice the following:

* The short file name (8 character format) is blank, and
* The long file name is ONE+~1 where the + actually is the paragraph
symbol (backwards P with two vertical lines)

I don't know how to interpret these wacky results. It's odd that from DOS,
the file name does not start with P. In fact, output from dir list
files/directories in alphabetical order and it's interpreting this file as
starting with the letter O.

As mentioned above, within DOS I have tried all of these variations (and
more):

* rmdir "P?ONE?~1"
* rmdir "P*ONE*~1"
* rmdir *P*ONE*"
* etc. etc.

I've also tried "chkdsk" with various flags, and a utility called
MoveOnBoot, and about 42 other shareware tools, in addition various Safe Mode
options, and so on.

At this point, I'm thinking about taking a scratch awl to the sector of my
disk where this directory resides!

Thanks again for trying to help! I'm certainly open to other suggestions too.

Brian





"John" wrote:

>
> "Mr Bubba" <Mr (E-Mail Removed)> wrote in message
> news:38719D25-D3E4-4A70-B66C-(E-Mail Removed)...
> >I have an empty directory that contains special/unreadable characters in
> >its
> > name. It has been impossible so far to find a way to delete it, and this
> > oddball directory name is causing my backup software to fail when I do a
> > full
> > system backup. Worse yet, this particular directory name resides in the
> > following Windows XP system directory structure:
> >
> > C:/Documents and Settings/All Users/Start Menu/Programs
> >
> > I've tried every variation of rm, rmdir, dir /x, and cut/delete from
> > Windows
> > Explorer, etc. I even tried completely reloading Windows XP from my
> > original
> > OS/Drivers CDs. I have a Gateway PC and it appears that this malformed
> > directory may be part of a Phone Tools application installation that was
> > part
> > of my original Gateway OS/Drivers CD package. Maybe it's a virus that was
> > on
> > the orginal CDs. I'm not sure if that's the case, and even if so, I can't
> > find a way to prevent it from loading when I reload Windows XP.
> >
> > Any suggestions on how to get rid of this crazy directory from a Windows
> > system directory?
> >
> > Brian
> >

> Try to rename it to a valid directory name.
> Select the Programs directory so that the problem directory is
> in the right pane of Windows Explorer. Click on the directory to
> highlight it. Wait 5 seconds and click on the directory name again.
> Press the delete key.
> Type XXX
> Hit the enter key.
> If the rename worked, you can now delete the directory.
> If it didn't work, open a command prompt window and change
> to the programs directory.
> Do a remove directory specifying the directory name bracketed in
> double quotes. Every place that there is a special character
> in the name, use a question mark in place of the special
> character. (? is the ambiguous single character, * is the
> ambiguous string character).
>
>
>
>

 
Reply With Quote
 
John
Guest
Posts: n/a
 
      3rd Feb 2008

"Mr Bubba" <(E-Mail Removed)> wrote in message
news:35B814CD-BAAC-4478-AEA1-(E-Mail Removed)...
> John,
>
> Thank you for your speedy reply!
>
> Renaming the directory is not possible. The following error messages are
> returned when trying to do so:
>
> * Cannot rename file: Cannot read from source file or disk
>
> I get the same message when trying to delete this directory via Windows
> Explorer too except replace "rename" above with "delete."
>
> I've tried the DOS command approach too with every conceivable wildcard
> combination.
>
> The following error message is always returned:
>
> * The filename, directory name, or volume label syntax is incorrect.
>
> Here are a couple of other interesting points about this directory:
>
> When viewing this directory's info using Properties from Windows Explorer,
> the file name looks like this: P^ONE^~1 where the carrot symbols are
> actually squares, (but I can't quickly figure out how to put a square in
> this
> response!). The same directory name format is displayed in the list when
> selecting Start followed by All Programs.
>
> If I run a dir /x from DOS, I notice the following:
>
> * The short file name (8 character format) is blank, and
> * The long file name is ONE+~1 where the + actually is the paragraph
> symbol (backwards P with two vertical lines)
>
> I don't know how to interpret these wacky results. It's odd that from
> DOS,
> the file name does not start with P. In fact, output from dir list
> files/directories in alphabetical order and it's interpreting this file as
> starting with the letter O.
>
> As mentioned above, within DOS I have tried all of these variations (and
> more):
>
> * rmdir "P?ONE?~1"
> * rmdir "P*ONE*~1"
> * rmdir *P*ONE*"
> * etc. etc.
>
> I've also tried "chkdsk" with various flags, and a utility called
> MoveOnBoot, and about 42 other shareware tools, in addition various Safe
> Mode
> options, and so on.
>
> At this point, I'm thinking about taking a scratch awl to the sector of my
> disk where this directory resides!
>
> Thanks again for trying to help! I'm certainly open to other suggestions
> too.
>
> Brian
>

My next step would be to run a binary disk editor, find the sector that
contains the bad directory name and change all of the special characters
to standard alphanumeric characters. In the DOS days, Norton had an
editor that would have made this easy. Unfortunately it doesn't
understand the NTFS file format or long file names.
There is a program in the Microsoft Support Tools called
dskprobe that allows individual sector editing. It's very
dangerous to use because if you modify the wrong sector
you can end up with a reinstall job on your hands.
If you are going to try it, please do a good backup before
you start.


 
Reply With Quote
 
Mr Bubba
Guest
Posts: n/a
 
      3rd Feb 2008
John,

Thank you for your help! I'll check out the tool that you referred to ...
and be exceedingly careful.

Brian


"John" wrote:

>
> "Mr Bubba" <(E-Mail Removed)> wrote in message
> news:35B814CD-BAAC-4478-AEA1-(E-Mail Removed)...
> > John,
> >
> > Thank you for your speedy reply!
> >
> > Renaming the directory is not possible. The following error messages are
> > returned when trying to do so:
> >
> > * Cannot rename file: Cannot read from source file or disk
> >
> > I get the same message when trying to delete this directory via Windows
> > Explorer too except replace "rename" above with "delete."
> >
> > I've tried the DOS command approach too with every conceivable wildcard
> > combination.
> >
> > The following error message is always returned:
> >
> > * The filename, directory name, or volume label syntax is incorrect.
> >
> > Here are a couple of other interesting points about this directory:
> >
> > When viewing this directory's info using Properties from Windows Explorer,
> > the file name looks like this: P^ONE^~1 where the carrot symbols are
> > actually squares, (but I can't quickly figure out how to put a square in
> > this
> > response!). The same directory name format is displayed in the list when
> > selecting Start followed by All Programs.
> >
> > If I run a dir /x from DOS, I notice the following:
> >
> > * The short file name (8 character format) is blank, and
> > * The long file name is ONE+~1 where the + actually is the paragraph
> > symbol (backwards P with two vertical lines)
> >
> > I don't know how to interpret these wacky results. It's odd that from
> > DOS,
> > the file name does not start with P. In fact, output from dir list
> > files/directories in alphabetical order and it's interpreting this file as
> > starting with the letter O.
> >
> > As mentioned above, within DOS I have tried all of these variations (and
> > more):
> >
> > * rmdir "P?ONE?~1"
> > * rmdir "P*ONE*~1"
> > * rmdir *P*ONE*"
> > * etc. etc.
> >
> > I've also tried "chkdsk" with various flags, and a utility called
> > MoveOnBoot, and about 42 other shareware tools, in addition various Safe
> > Mode
> > options, and so on.
> >
> > At this point, I'm thinking about taking a scratch awl to the sector of my
> > disk where this directory resides!
> >
> > Thanks again for trying to help! I'm certainly open to other suggestions
> > too.
> >
> > Brian
> >

> My next step would be to run a binary disk editor, find the sector that
> contains the bad directory name and change all of the special characters
> to standard alphanumeric characters. In the DOS days, Norton had an
> editor that would have made this easy. Unfortunately it doesn't
> understand the NTFS file format or long file names.
> There is a program in the Microsoft Support Tools called
> dskprobe that allows individual sector editing. It's very
> dangerous to use because if you modify the wrong sector
> you can end up with a reinstall job on your hands.
> If you are going to try it, please do a good backup before
> you start.
>
>
>

 
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
Special Characters Dave Neve Microsoft Outlook VBA Programming 0 6th Aug 2007 08:41 AM
special characters =?Utf-8?B?TmVpbEdlbA==?= Microsoft Access VBA Modules 3 16th Jul 2007 11:36 PM
delete line of special characters (*, +, -, etc) auto inserted by =?Utf-8?B?c2IyMDA2?= Microsoft Word Document Management 4 8th Oct 2006 09:49 PM
special characters =?Utf-8?B?TWFpc2ll?= Microsoft Word Document Management 3 1st Jul 2004 09:33 PM
Delete all special characters in a selection? ali Microsoft Excel Programming 4 7th Dec 2003 08:45 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:23 PM.