home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / os / msdos / misc / 5030 < prev    next >
Encoding:
Text File  |  1992-09-03  |  2.4 KB  |  63 lines

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