Re: Delete directory name that contains special characters




"Mr Bubba" <MrBubba@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:35B814CD-BAAC-4478-AEA1-93B640738DEF@xxxxxxxxxxxxxxxx
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.


.



Relevant Pages

  • Re: Atari Basic Diskette Recovery
    ... What happens when you delete a disk file? ... After processing the filename, DOS searches ... reads each sector in the file, finds it in the VTOC, ... the DOS directory search routine is instructed ...
    (comp.sys.atari.8bit)
  • Re: CFFA Card max size for CF Card
    ... handling 400K DOS disks the way it was written. ... over the whole disk. ... by the sector allocation map in the VTOC, which could only span one ...
    (comp.sys.apple2)
  • Re: GPLE?
    ... CiderPress is trying to identify both the disk format and the sector ... The way it does it in DOS is to start at 17,0 and chase through ...
    (comp.emulators.apple2)
  • Re: Atari Basic Diskette Recovery
    ... The disk has the BASIC program that writes the executable, ... After processing the filename, DOS searches ... reads each sector in the file, finds it in the VTOC, ... the DOS directory search routine is instructed ...
    (comp.sys.atari.8bit)
  • Re: SortMerge avoids thrashing (was: Baileys "two pass" FFT algorithm question)
    ... of size that match the backing store to assure locality of reference. ... For RAM backed by disk, the key thing which takes the most time is ... you need to localize sector reads within that one ... Sweeps your RAM once when you load original data from disk. ...
    (comp.programming)

Loading