delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2011/11/28/02:45:12

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: Georg <dosusb AT googlemail DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: argv[0]
Date: Sun, 27 Nov 2011 23:06:43 -0800 (PST)
Organization: http://groups.google.com
Lines: 13
Message-ID: <9bf257a7-a0f8-43ba-a65f-36c6027f68cb@r28g2000yqj.googlegroups.com>
References: <16b04d29-8317-4c7f-929c-1a22a328fa32 AT p9g2000vbb DOT googlegroups DOT com> <jaueod$2t8$1 AT speranza DOT aioe DOT org>
NNTP-Posting-Host: 92.250.191.164
Mime-Version: 1.0
X-Trace: posting.google.com 1322464874 2916 127.0.0.1 (28 Nov 2011 07:21:14 GMT)
X-Complaints-To: groups-abuse AT google DOT com
NNTP-Posting-Date: Mon, 28 Nov 2011 07:21:14 +0000 (UTC)
Complaints-To: groups-abuse AT google DOT com
Injection-Info: r28g2000yqj.googlegroups.com; posting-host=92.250.191.164; posting-account=v5xbdQoAAAAOGc9Ccc-kLZyobvPlN3Qr
User-Agent: G2/1.0
X-HTTP-Via: 1.1 TAS-4-2.man-a
X-Google-Web-Client: true
X-Google-Header-Order: UALSERCVNKH
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.1.4)
Gecko/20091016 Firefox/3.5.4,gzip(gfe)
Bytes: 1721
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

I am looking for the absolute path to the running progam. Ralph Brown
mentions this in table 01379 and I thought argv[0] may be a way in
djgpp to retrieve that.

Here is a link to that table 01379:
http://www.ctyme.com/intr/rb-2682.htm

I tried to use _go32_info_block.linear_address_of_original_psp to get
the PSP and then read the environment block segment from 0x2C in there
but did not succeed in reading the envrionment and following that the
absolute path that way.

Georg

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019