home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / sys / apple2 / 25954 < prev    next >
Encoding:
Text File  |  1992-12-23  |  2.9 KB  |  56 lines

  1. Newsgroups: comp.sys.apple2
  2. Path: sparky!uunet!munnari.oz.au!titan!pogo!guillaum
  3. From: guillaum@pogo.trl.OZ.AU (Andrew Guillaume)
  4. Subject: Prodos 2.0.1 / Basic 1.5 name length checking
  5. Message-ID: <1992Dec23.211506.276@trl.oz.au>
  6. Followup-To: comp.sys.apple2
  7. Sender: root@trl.oz.au (System PRIVILEGED Account)
  8. Reply-To: a.guillaume@trl.oz.au
  9. Organization: The Okefenokee Swamp
  10. Date: Wed, 23 Dec 1992 21:15:06 GMT
  11. Lines: 43
  12.  
  13.  
  14. G'day !
  15.  
  16. I had a problem I had never come across until yesterday. I have a //c with a
  17. Chinook 40Meg HD attached, and I am using Prodos 2.0.1 and Basic 1.5 which
  18. I picked off a friend's diskette. I was creating a Basic file, and when
  19. I decided to save it to disk, I unintentionnally gave it a name which was
  20. 19 characters long (myprogramv1.startup). I know that file names are limited
  21. to 15 characters (right ?), so when the Syntax Error message came up, I
  22. shortened the name. But what surprised me was that then Basic (or is it
  23. Prodos ?) complained about an IO error ! When I then tried to catalog the disk
  24. (through various programs such as CatDoctor, Shrinkit, Copy2+, and through
  25. the Basic catalog command), there was an extra file which contained loads of
  26. control characters, was definitely more than 15 characters, and had bits and
  27. pieces of the directory structure in its name ! I can only assume that the
  28. first attempt to save the long name must have written bytes beyond the 15
  29. bytes reserved for the name, thus causing havoc. So my question is, shouldn't
  30. Basic/Prodos check the name length before even trying to write to disk ?
  31.  
  32. As a corollary to that, needless to say that both the aborted basic file and
  33. the extra one were not to be deleted through "normal" means (such as using
  34. Basic's delete, CatDoctor, Shrinkit, or Copy2+), and I spent hours (it had
  35. never happened to me before) figuring out how to get rid of these files. I
  36. ended up using MrFixit (Prosel8) to fix errors, so that no errors would be
  37. reported, but then having files and a subdirectory (in which the files were 
  38. placed) being immortal. They didn't want to disappear ! Luckily it was the
  39. last entry in the directory, so I used Block Warden (Prosel8 again) to 
  40. physically write 00's all over the subdirectory entry. I don't know what
  41. further damage I may have caused, but the files and subdirectory disappeared, 
  42. and any remaining errors were fixed again with MrFixit. Now I would like to
  43. know what the experts out there (yes, you ! :-) would do in such a situation?
  44.  
  45. Incidentally, my HD came with Prodos 1.9 and Basic 1.4, and I just copied
  46. the new Prodos and Basic over the old ones. Should I have done differently,
  47. like reformat ? I would also like to know if any of the tools I have
  48. mentioned (CatDoctor, Shrinkit, Copy2+ or even the Apple System Utilities)
  49. will correctly format my hard disk if I required this to be done.
  50.  
  51. Thanks for any info you can give me, and I hope this is a good diversion
  52. to the "Storm" and "Comments" posts :-) :-) :-)
  53.  
  54. Andrew Guillaume
  55. a.guillaume@trl.oz.au
  56.