delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/11/21/11:50:33

Date: Thu, 21 Nov 2002 17:58:13 +0300
From: "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>
Sender: halo1 AT zahav DOT net DOT il
To: djgpp AT delorie DOT com
Message-Id: <7458-Thu21Nov2002175813+0200-eliz@is.elta.co.il>
X-Mailer: emacs 21.3.50 (via feedmail 8 I) and Blat ver 1.8.9
In-reply-to: <vgeptukf25p6pbh3oa0bqh76rrdi79rmvm@4ax.com> (message from
Wilfried Hennings on Thu, 21 Nov 2002 11:58:41 +0100)
Subject: Re: winXP, gcc: calling a batch file via system()
References: <ln7ntu0vk669lhkk2f3erqbejl9nejvnru AT 4ax DOT com> <2110-Wed20Nov2002190106+0200-eliz AT is DOT elta DOT co DOT il> <vgeptukf25p6pbh3oa0bqh76rrdi79rmvm AT 4ax DOT com>
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> From: Wilfried Hennings <nospam AT fz-juelich DOT de>
> Newsgroups: comp.os.msdos.djgpp
> Date: Thu, 21 Nov 2002 11:58:41 +0100
> 
> > I hope this is the refreshed v2.03, the one that has several fixes
> > that specifically target W2K and XP systems.  If not, please install
> > the refresh.
> How can I see whether it is? At least the files are dated Aug15, 2002.

That sounds like the refreshed release.

> > That's not true, to the best of my memory: the program name is not
> > abbreviated when `system' looks for it along the PATH.
> > 
> > DJGPP's library sources are freely available, so I suggest to download
> > djlsr203.zip and trace the execution of the functions on system.c and
> > dosexec.c modules.  If you see the abbreviation, please point out
> > where is it done.  
> 
> As far as I can see, in dosexec.c lines 182 to 207.

I think you misunderstood the code: what that fragment does is put the
short 8+3 alias of the program's name into the place that will be
passed to the program as its argv[0].  This is what Windows does as
well, and has nothing to do with how the executable file is searched
on disk.

> > Invoke the batch file like this:
> > 
> >        command.com /e:2000 /c latex2png
> 
> That's it! Thanks! and best regards from

You are welcome.

- Raw text -


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