home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / atari / st / tech / 6456 < prev    next >
Encoding:
Internet Message Format  |  1993-01-04  |  1.4 KB

  1. Path: sparky!uunet!mcsun!uknet!bhamcs!percy!dxo
  2. From: dxo@cs.bham.ac.uk (David Oakley)
  3. Newsgroups: comp.sys.atari.st.tech
  4. Subject: Re: chdir in sozobon
  5. Message-ID: <1993Jan4.120301@cs.bham.ac.uk>
  6. Date: 4 Jan 93 12:03:01 GMT
  7. References: <1993Jan4.015926.26383@oz.plymouth.edu>
  8. Sender: news@cs.bham.ac.uk
  9. Organization: University of Birmingham
  10. Lines: 23
  11. Nntp-Posting-Host: mb10
  12.  
  13. In article <1993Jan4.015926.26383@oz.plymouth.edu>, pyr579@oz.plymouth.edu (Technoid) writes:
  14. |> Hello,
  15. |> 
  16. |>     I am having difficulty with chdir() is Sozobon 1.33i ( Heat N
  17. |> Serve ). It won't change drives. According to the dlibs text file,
  18. |> chdir() will change the drive if a drive letter is given to it. I assume
  19. |> this means that if I enter "d:\telecomm" for a string, it will ( with
  20. |> the proper end slashes added. ) change the current drive to D: and then
  21. |> change the directory to \telecomm. The problem is, it does not do this.
  22. |> I'm only trying to implement a simple cd command for a mini TOS shell
  23. |> and I've got most of the other commands finished. This one, that should
  24. |> be easy, doesn't want to work. Any help would be great or if you have a
  25. |> working cd command implemented, I'd love to see your code.
  26. |> 
  27. |> Stephan
  28.  
  29. If it uses the GEMDOS setpath() call it won't change the drive. GEMDOS keeps a
  30. current path for every drive, so you probably need to chdir() and then chdrive()
  31. (I haven't used C much so I don't know), or the other way round.
  32.  
  33. I think.
  34.  
  35. David.
  36.