home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: in.pc,comp.os.msdos.misc
- Path: sparky!uunet!stanford.edu!agate!linus!linus.mitre.org!jcmorris
- From: jcmorris@mwunix.mitre.org (Joe Morris)
- Subject: Re: Missing character questions....
- Message-ID: <jcmorris.715537213@mwunix>
- Sender: news@linus.mitre.org (News Service)
- Nntp-Posting-Host: mwunix.mitre.org
- Organization: The MITRE Corporation
- References: <Bu0CD5.5ry@usenet.ucs.indiana.edu>
- Date: Thu, 3 Sep 1992 16:20:13 GMT
- Lines: 50
-
- rcbaker@silver.ucs.indiana.edu (Bob Baker) writes:
-
- >While working on converting some VERY old DOS files at work, we've
- >discovered an interesting dilemma. When we do a directory listing of
- >the files, we see things like:
-
- >H FRAME TXT 09-01-84 etc., etc.
- >S H HOUS TXT 09-01-84
-
- >Our problem comes when we want to copy these files to other disks.
- >Whatever character the blank space is in the directory listing, it
- >does not get read in the copy program. We see:
-
- >HFRAME.TXT - File not found
- >0 files copied
-
- >For whatever reason, DOS removes the character that appears in the
- >directory, and we are unable to copy our files (let alone read them,
- >delete them, rename them, etc.).
-
- >Has anyone seen this problem before? Better yet, does any one have a
- >solution as to how to fix it?
-
- A quick experiment shows that the COPY command does in fact get confused
- when presented with a filename with an embedded space. The error
- message does not include the space character.
-
- (This occurs with a real space. It doesn't require a strange nonprintable
- character to trigger the problem.)
-
- OTOH, the ERASE command couldn't care less as long as you can point to the
- file without giving the component of the fileid which contains the space.
- I created a file named "FbOO.BAR" ("b" == space); the command:
- COPY *.BAR XXX
- failed, complaining about being unable to find "FOO.BAR" (note the space is
- gone); but the command:
- ERASE *.BAR
- worked fine.
-
- The best solution is probably to use Norton Disk Editor or a similar utility
- to patch the directory entry for the file to make the file name legal.
-
- I had to use this workaround on a system which has a dual-boot setup with
- MSDOS and OS/2V2: several of the OS/2 files have embedded spaces in both
- the filename and extension parts of the fileid. Using Norton to make these
- filenames valid (as well as turning off the hidden and system attributes)
- was necessary in order to properly do a Speed Disk run on the system. (Yes,
- I undid the changes afterwords.)
-
- Joe Morris / MITRE
-