C (143/178)

From:Colin Wenzel
Date:27 Jul 2000 at 07:01:18
Subject:Re: PROGDIR:

On 27-Jul-00, Alexander Niven-Jenkins wrote:
-snip-
> If you run this, you find an empty file called testfile.txt in
> which ever directory the program ran from.

> Of course this might vary for CLI launched programs as the OS
> might use the current directory rather than the directory the
> program resides in, I can't remember.
> But it definitely works from WB, I know I use it all the time :-)
> Kind regards...
> Alex

There are no exceptions,
PROGDIR: is always pointing to the *PRO*gram *DIR*ectory,
you can CD to anywhere you like, but PROGDIR:
will still point to the directory where the program is....

Regards



_________________________________________

Colin Wenzel. Australia.

EMAIL: colstv@hotkey.net.au
URL: http://www.hotkey.net.au/~colstv/
ICQ: 17608330
AMIGA: 4000T, 68060/50, 150Mb RAM,
OS 3.5, Spectrum Gfx Card.
_________________________________________

--------------------------------------------------------------------<e|-
The Most Expensive Thing You Can Haul Is An Empty Trailer.
http://click.egroups.com/1/5776/1/_/451227/_/964677743/
--------------------------------------------------------------------|e>-