X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: Georg Newsgroups: comp.os.msdos.djgpp Subject: Re: argv[0] Date: Mon, 5 Dec 2011 13:07:09 -0800 (PST) Organization: http://groups.google.com Lines: 10 Message-ID: References: <16b04d29-8317-4c7f-929c-1a22a328fa32 AT p9g2000vbb DOT googlegroups DOT com> <6719f201-2317-420d-bb38-3be66c90140b AT q9g2000yqe DOT googlegroups DOT com> <5059ad16-7787-49ef-8fb3-d9c21919a65b AT d10g2000vbf DOT googlegroups DOT com> <20af6883-aa05-4549-b820-ca0f7c80708d AT ca1g2000vbb DOT googlegroups DOT com> NNTP-Posting-Host: 92.250.191.164 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1323120167 22735 127.0.0.1 (5 Dec 2011 21:22:47 GMT) X-Complaints-To: groups-abuse AT google DOT com NNTP-Posting-Date: Mon, 5 Dec 2011 21:22:47 +0000 (UTC) Complaints-To: groups-abuse AT google DOT com Injection-Info: y12g2000vba.googlegroups.com; posting-host=92.250.191.164; posting-account=v5xbdQoAAAAOGc9Ccc-kLZyobvPlN3Qr User-Agent: G2/1.0 X-HTTP-Via: 1.1 TAS-4-4.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: 1957 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Martin, that is what DJ Delorie mentioned above and "redir" uses this call but does not pass the absolute path, which I assume is a flaw. RayerR is right that his and my program are almost always called from the command line so this will be no problem then. In an attempt to make it bullet-proof I will use the code posted above. Georg