home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / acorn / tech / 1072 < prev    next >
Encoding:
Text File  |  1992-12-18  |  1.3 KB  |  32 lines

  1. Newsgroups: comp.sys.acorn.tech
  2. Path: sparky!uunet!mcsun!sun4nl!dutrun!dutiws!roozemaa
  3. From: roozemaa@dutiws.twi.tudelft.nl (Peter.Roozemaal.IS-assistent)
  4. Subject: Re: Reading !Run vars
  5. Message-ID: <BzEwAo.Cqw@dutiws.twi.tudelft.nl>
  6. Organization: Delft University of Technology
  7. References: <1992Dec16.185334.11229@westminster.ac.uk>
  8. Date: Thu, 17 Dec 1992 16:25:36 GMT
  9. Lines: 21
  10.  
  11. In article <1992Dec16.185334.11229@westminster.ac.uk> gpcec@westminster.ac.uk (Tom Kirby-Green) writes:
  12. >Hi quick question...
  13. >    What the best method of getting hold of a Application's Obey dir'.
  14. >I'm using Desktop C - so basically I need the path that resspr etc uses
  15. >to find its resources. At the mo. I'm launching the file with the usual
  16. >!Run, but with the ugly line...
  17. >
  18. >    Run <CADshell$Dir>.!RunImage "<CADshell$Dir>"
  19. >
  20. >    Then using argv [1] to pick it up - theres gotta be a better way ;-)
  21. >
  22. >        Thanks in advance - J.T.T.B. Tom.
  23. I would use the first part of argv[0]; that contains the full pathname
  24. with which the program was invoked.
  25.  
  26.  
  27. -- 
  28. --- Peter W. Roozemaal --- Email: witaroo@dutinfh.twi.tudelft.nl --------------
  29. -------------------------- Smail: Geitenkamp 45 -------------------------------
  30. --- tel. +31-15-611389 ---------- 2623 BB  Delft ---------- If it's urgent, ---
  31. --------------------------------- the Netherlands --------- don't phone me! ---
  32.