ftp.delorie.com/archives/browse.cgi | search |
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: | Thu, 1 Dec 2011 23:25:34 -0800 (PST) |
Organization: | http://groups.google.com |
Lines: | 31 |
Message-ID: | <622776c6-b856-4f17-84c2-2d8ad4e6c627@m7g2000vbc.googlegroups.com> |
References: | <16b04d29-8317-4c7f-929c-1a22a328fa32 AT p9g2000vbb DOT googlegroups DOT com> |
<jaueod$2t8$1 AT speranza DOT aioe DOT org> <9bf257a7-a0f8-43ba-a65f-36c6027f68cb AT r28g2000yqj DOT googlegroups DOT com> | |
<jb1ejh$hm8$1 AT speranza DOT aioe DOT org> <cc43d375-8e59-425d-a32e-b4ca200ae5cc AT 4g2000yqu DOT googlegroups DOT com> | |
<jb9apa$h00$1 AT speranza DOT aioe DOT org> | |
NNTP-Posting-Host: | 92.250.191.164 |
Mime-Version: | 1.0 |
X-Trace: | posting.google.com 1322810838 29818 127.0.0.1 (2 Dec 2011 07:27:18 GMT) |
X-Complaints-To: | groups-abuse AT google DOT com |
NNTP-Posting-Date: | Fri, 2 Dec 2011 07:27:18 +0000 (UTC) |
Complaints-To: | groups-abuse AT google DOT com |
Injection-Info: | m7g2000vbc.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: | 2142 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
Hi Rod, thank you for looking at this. Here is my assembler code (TASM) which prints out the environment fine in a Windows XP DOS BOX: .MODEL SMALL stack 100h .CODE START: mov cx,3600 mov ax,word ptr ds:[2Ch] mov ds,ax xor dx,dx ;point DS:DX to environment mov bx,01h mov ah,40h int 21h mov ax,4C00h int 21h .data END START I would be fine if I could do that in DJGPP, retrieving the absolute path from that does not seem to be very difficult then. Maybe DJGPP frees the environment block of the running program somehow. Georg
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |