home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!sun-barr!cs.utexas.edu!uwm.edu!rutgers!cbmvax!mks
- From: mks@cbmvax.commodore.com (Michael Sinz)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Using System() when started from Workbench -- path?
- Message-ID: <33697@cbmvax.commodore.com>
- Date: 27 Jul 92 14:12:34 GMT
- References: <0ePirjO00WB6AL40NI@andrew.cmu.edu> <paulk.0wj4@terapin.com>
- Reply-To: mks@cbmvax.commodore.com (Michael Sinz)
- Organization: Commodore, West Chester, PA
- Lines: 24
-
- paulk@terapin.com (Paul Kienitz) writes:
- >> Does someone have a simple example of getting the path from the
- >> Workbench process so I can feed it to System()?
- >
- >My program CLImax does this, though it's a 1.3-ish program. Lemme
- >look at the source ...
-
- Watch out... You really do not want to use FindTask("Workbench")
- to find the workbench task. If you look at the startup message
- and look at the reply port and find out that there is a PA_SIGNAL
- then get the PA_SIGTASK pointer to find the task. This way, if
- someone wants to do a replacement workbench or a different tool
- started, it will work.
-
- Also, you need to watch out that you don't hang up for too long
- since workbench may start playing with its path while you are.
-
- /----------------------------------------------------------------------\
- | /// Michael Sinz - Senior Amiga Systems Engineer |
- | /// Operating System Development Group |
- | /// BIX: msinz UUNET: mks@cbmvax.commodore.com |
- |\\\/// When people are free to do as they |
- | \XX/ please, they usually imitate each other. |
- \----------------------------------------------------------------------/
-