home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / os / msdos / misc / 6100 < prev    next >
Encoding:
Internet Message Format  |  1992-11-10  |  3.3 KB

  1. Path: sparky!uunet!littlei!hfglobe!bharris
  2. From: bharris@hfglobe.intel.com (Bennie Harris)
  3. Newsgroups: comp.os.msdos.misc
  4. Subject: Re: Help--Space in filename..can't read/write/copy
  5. Message-ID: <BxIIoq.3Ft@hfglobe.intel.com>
  6. Date: 10 Nov 92 18:14:50 GMT
  7. References: <Bwy4xn.Ktu@watserv1.uwaterloo.ca> <bern.721335559@kleopatra>
  8. Organization: Intel Corporation
  9. Lines: 62
  10.  
  11. bern@Uni-Trier.DE (Jochen Bern) writes:
  12.  
  13. >In <Bwy4xn.Ktu@watserv1.uwaterloo.ca> Roger De Abreu <roger@wateol.uwaterloo.ca> writes:
  14. >>Help !  An underline(space) was put into one of my filenames (eg.
  15. >>cos_102.txt) and 
  16. >>now I can't read or copy the file.   Anyone know how I can correct the
  17. >>filename or
  18. >>at least retrieve the data.
  19.  
  20. >OK, I think this is worth a longer Posting ...
  21.  
  22. >MSDOS inherited its internal Structure, i. e. Procedures, from two different
  23. >OSes: CP/M and Unix. CP/M was the former Standard for PC-sized Machines, but
  24. >it didn't support (Sub)Directories. Unix did. This lead to the Fact that most
  25. >internal Procedures for File and Directory Handling exist TWICE, one Version
  26. >based on CP/M and one on Unix. The CP/M-flavored Procedures use File Control
  27. >Blocks (FCBs) to access Files and an additional "cd" Procedure to switch
  28. >Dirs; They DON'T support Access to a File without cding to its Dir. The Unix-
  29. >style Procedures use so-called Handles, identifying Numbers, just like Process
  30. >Numbers or something of this Kind; They ALWAYS ALLOW absolute or relative
  31. >Paths in the Filename.
  32.  
  33. >FCBs receive Filenames (remember: No Paths) in a 11-Byte Field. You are free
  34. >to fill in WHATEVER Bit Pattern you like. FCB Procs are, thus, able to create
  35. >Files with illegal Names - and to access them.
  36.  
  37. >Handle Procs use File Names only once (when assigning a Handle to the Object).
  38. >Upon this, they allow Paths and, thus, must parse the String they received.
  39. >This makes the Usage of illegal File Names impossible.
  40.  
  41. >NOW WE COME TO THE SOLUTION OF THE PROBLEM:
  42.  
  43. >There are two basically different Approaches:
  44.  
  45. >1) Use Programs which look at the Directory as the Object to work upon and are
  46. >   able to alter the Name of an Entry. Examples: Norton Utilities, PC Tools,
  47. >   and all other Flavors of Disk Editors.
  48.  
  49. >2) Use Programs which access the File as their Object BUT USE FCB ROUTINES.
  50. >   They will be able to access the File in any Way you like. This includes:
  51. >   -- Very old XTree Versions (preceding XTree Pro, I think)
  52. >   -- All Programs compiled with Turbo Pascal (well, at least prior to TP 5.0)
  53. >   (Anybody got a bigger List?)
  54.  
  55. >Final Advice: I don't know what your MSDOS Version is, nor what it uses ITSELF.
  56. >If it uses FCBs, there SHOULD be a Way to access the File without additional
  57. >Software. If it doesn't, CHKDSK should recognize the "lost File" and rename
  58. >it to C:\FILE0000.CHK, which would probably be the easiest Way.
  59.  
  60. >Hope that helps,
  61. >                                J. Bern
  62. >-- 
  63. > /  \  I hate NN rejecting .sigs >4 lines. Even though *I* set up this one. /\
  64. >/ J. \ EMail: bern@[TI.]Uni-Trier.DE / ham: DD0KZ  / More Infos on me from /  \
  65. >\Bern/ X.400 Mail: S=BERN;P=Uni-Trier;A=dbp;C=de  /   X.400 Directory, see \  /
  66. > \  /  Zurmaiener Str. 98-100, D-W-5500 Trier    /     X.29 # 45050230303.  \/
  67.  
  68.  
  69. You can also try RENAME cos?102.txt cos102.txt.  
  70. RENAME cos*102.txt cos102.txt should also work if
  71. there are no other files that match the wild card.
  72. -- Bennie Harris
  73.