Article View: comp.sys.acorn.tech
Article #682Re: Reading !Run vars
From: Peter.Roozemaal.IS-assistent
Date: Thu, 17 Dec 1992 16:25
Date: Thu, 17 Dec 1992 16:25
21 lines
1380 bytes
1380 bytes
In article <1992Dec16.185334.11229@westminster.ac.uk> gpcec@westminster.ac.uk (Tom Kirby-Green) writes: >Hi quick question... > What the best method of getting hold of a Application's Obey dir'. >I'm using Desktop C - so basically I need the path that resspr etc uses >to find its resources. At the mo. I'm launching the file with the usual >!Run, but with the ugly line... > > Run <CADshell$Dir>.!RunImage "<CADshell$Dir>" > > Then using argv [1] to pick it up - theres gotta be a better way ;-) > > Thanks in advance - J.T.T.B. Tom. I would use the first part of argv[0]; that contains the full pathname with which the program was invoked. -- --- Peter W. Roozemaal --- Email: witaroo@dutinfh.twi.tudelft.nl -------------- -------------------------- Smail: Geitenkamp 45 ------------------------------- --- tel. +31-15-611389 ---------- 2623 BB Delft ---------- If it's urgent, --- --------------------------------- the Netherlands --------- don't phone me! ---
Technical Details
Message-ID:
<BzEwAo.Cqw@dutiws.twi.tudelft.nl>Path:
arc1-ca.pugleaf.net!sparky!uunet!mcsun!sun4nl!dutrun!dutiws!roozemaaReferences:
<1992Dec16.185334.11229@westminster.ac.uk>Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.acorn.tech Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!sun4nl!dutrun!dutiws!roozemaa From: roozemaa@dutiws.twi.tudelft.nl (Peter.Roozemaal.IS-assistent) Subject: Re: Reading !Run vars Message-ID: <BzEwAo.Cqw@dutiws.twi.tudelft.nl> Organization: Delft University of Technology References: <1992Dec16.185334.11229@westminster.ac.uk> Date: Thu, 17 Dec 1992 16:25:36 GMT Lines: 21