home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / acorn / tech / 1082 < prev    next >
Encoding:
Internet Message Format  |  1992-12-21  |  1.4 KB

  1. Path: sparky!uunet!pipex!doc.ic.ac.uk!news!dbh
  2. From: dbh@doc.ic.ac.uk (Denis Howe)
  3. Newsgroups: comp.sys.acorn.tech
  4. Subject: Re: Find the root path under RiscOS 3.1
  5. Date: 18 Dec 92 14:16:59
  6. Organization: Computing Department, Imperial College, London, UK
  7. Lines: 31
  8. Distribution: world
  9. Message-ID: <DBH.92Dec18141659@wombat.doc.ic.ac.uk>
  10. References: <COXJP.92Dec15150754@beluga.cs.man.ac.uk>
  11. NNTP-Posting-Host: wombat.doc.ic.ac.uk
  12. In-reply-to: coxjp@cs.man.ac.uk's message of 15 Dec 92 15:07:54 GMT
  13.  
  14. In article <COXJP.92Dec15150754@beluga.cs.man.ac.uk>
  15. coxjp@cs.man.ac.uk (Jonathan Cox) wrote:
  16.  
  17. >Distribution: comp
  18. Get your news software fixed!
  19.  
  20. >Some time ago somebody posted something about finding the URD or CSD
  21. >from the fileswitch system variables under RiscOS 3.1.
  22.  
  23. Me and others.
  24.  
  25. >The only solution I can come up with is:-
  26. >
  27. >set r FileSwitch$<FileSwitch$CurrentFilingSystem>$URD
  28. >seteval r <r>
  29. >set r <FileSwitch$CurrentFilingSystem>:<r>
  30. >
  31. >Is there a better way?
  32.  
  33. I assume you could use Owen Smith's suggestion of OS_FSControl 37
  34. (canonicalise name) on "$" for this.  If you want to do it all in CLI
  35. commands then your solution is probably as good as my:
  36.  
  37. Set FS <FileSwitch$CurrentFilingSystem>
  38. SetEval CSD "<FS>:"+FileSwitch$<FS>$CSD
  39.  
  40. (or replace CSD with URD) though, as I said, the first line is not
  41. necessary so you could do it in one (long) command.
  42. --
  43. Denis Howe <dbh@doc.ic.ac.uk>
  44. So Biggs, you're the idiot who bought all these IBM PCs.  You're fired!
  45.