Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Dealing With Filenames Containing Slash Character

Jun
552
4
Someone sent me a CDROM (made on a Mac) with file and directory names
containing a date string with forward slashes. No matter what I have
tried, TCC always changes the forward slashes to backward slashes and
then reports that it cannot find the file. Is there a way to overcome
this problem?

-- Jay
 
Someone sent me a CDROM (made on a Mac) with file and directory names
containing a date string with forward slashes. No matter what I have
tried, TCC always changes the forward slashes to backward slashes and
then reports that it cannot find the file. Is there a way to overcome
this problem?

-- Jay

Forward and backward slashes are both treated as path separators by Windows.
 
So you're saying that nothing can be done.

If this were a writable disk, I would go in with a disk editor and
change the file names, but that won't work with a CDROM. So I guess I'll
just have to get the person to burn a new CD and send it to me again.

Thanks.

-- Jay
 
Jay Sage wrote:
| So you're saying that nothing can be done.
|
| If this were a writable disk, I would go in with a disk editor and
| change the file names, but that won't work with a CDROM. So I guess
| I'll just have to get the person to burn a new CD and send it to me
| again.

I can think of one thing you could try. Use dir/b/s to create a file
containing all the filenames on the CDROM, and edit each name in the file to
be quoted, possibly convert each line to a separate COPY command (to a local
drive), and execute that. The command below MIGHT do what you need (not
tested!)

*dir/b/s z: | ( for %f in (@con:) echo copy "%f"
%@replace[v:,c:\temp,%@replace[/,\,%f]]" ) > fixup.btm
--
Steve
 
Steve Fabian wrote:

> Use dir/b/s to create a file containing all the
> filenames on the CDROM

I have no trouble getting the file names using DIR, but no COPY command
can process the file. Even inside quotes and even when preceded by the
escape character, the slash is interpreted as part of a path
specification, so the file is never found.

As I wrote before, if I were dealing with a floppy disk or memory stick,
I could go in with a disk editor and change the file name, but that
won't work with a CDROM.

In the meantime, the person who sent the CD was able to email the
inaccessible files to me.

I'm surprised that a Mac, which uses Unix as its underlying operating
system, supports file names with slashes.

-- Jay
 
OHH! But NOW I see.... Doh!

The filename uses illegal characters and therefore cannot be copied.

Since you appear to be comfortable with using disk editing tools, Why
don't you create an ISO image of the CD and then edit the image. You can
then mount the ISO image to get at the files using Daemon Tools or
something similar.

ISO Recorder from Alex Feinman will allow you to create an ISO image:
http://isorecorder.alexfeinman.com/isorecorder.htm

Daemon Tools is available from http://www.daemon-tools.cc/downloads

XVI32 is a free hex editor that will allow you to edit the ISO file:
http://www.chmaas.handshake.de/delphi/freeware/xvi32/xvi32.htm

-Scott

Jay Sage <> wrote on 03/11/2009 03:26:58 PM:


> Steve Fabian wrote:
>
> > Use dir/b/s to create a file containing all the
> > filenames on the CDROM
>
> I have no trouble getting the file names using DIR, but no COPY command
> can process the file. Even inside quotes and even when preceded by the
> escape character, the slash is interpreted as part of a path
> specification, so the file is never found.
>
> As I wrote before, if I were dealing with a floppy disk or memory stick,


> I could go in with a disk editor and change the file name, but that
> won't work with a CDROM.
>
> In the meantime, the person who sent the CD was able to email the
> inaccessible files to me.
>
> I'm surprised that a Mac, which uses Unix as its underlying operating
> system, supports file names with slashes.
>
> -- Jay
>
>
>
>
 

Similar threads

Back
Top