This being Friday, here's an answer to my own question ...

if the exe being run by the .BAT file is a 16bit DOS
exe then W95 will wait for it to finish before
executing the next command in the .BAT file.

if the exe being run is a 32 bit Win32 exe then w95
can (and does) start it and then continue executing
the .BAT file (without waiting for the 32 bit exe
to terminate)

so ... if Steve's wait program is an old 16bit dosapp
then this will in fact work as advertised.

This also means that if you have some way to build your
BAT steps as 16bit exe's (like an old Delphi 1 compiler)
this problem would go away.   (But why bother - you
can just use the START command)

Also ...  Win95 did indeed support the START command
(earlier i said i wasn't sure).   You may want to test
whether "/w" and "/wait" options are accepted by all
the platforms you need to run this on - ISTR some
difference (like "/wait" is required by some) but can't
remember the details.    (Suggest testing - help is
notoriously wrong about this kind of thing).

Thanks Mark for this nostalgic walk down memory lane ;-)



-ns
http://www.roserox.co.th

----- Original Message -----
From: "Nello Sestini" <[EMAIL PROTECTED]>
To: "Multiple recipients of list delphi" <[EMAIL PROTECTED]>
Sent: Friday, May 30, 2003 08:46
Subject: Re: [DUG]: OffTopic Batch file question


> Steve
>
> actually i have a program like this too and was
> going to suggest it - but then i wondered ...
>
>  how to get W95 to wait for the wait program?
>
> won't W95 just start the wait program and then
> immediately execute the next batch command
> (before the wait expires)?
>
>
>
> -ns
> http://www.roserox.co.th
>
>
> ----- Original Message -----
> From: "Stephen Barker" <[EMAIL PROTECTED]>
> To: "Multiple recipients of list delphi" <[EMAIL PROTECTED]>
> Sent: Friday, May 30, 2003 08:34
> Subject: RE: [DUG]: OffTopic Batch file question
>
>
> > Mark,
> >
> > in addition to the 'start wait' option others have mentioned, I have had
> on
> > occasion to add a delay in a batch file while waiting for a file to be
> fully
> > written/closed etc.
> >
> > I have a small wait.exe which takes a parameter of no. of seconds to
> wait -
> > I can send it if you want.
> >
> > regards,
> > Steve
> >
> > > -----Original Message-----
> > > From: Mark Howard [mailto:[EMAIL PROTECTED]
> > > Sent: Friday, 30 May 2003 1:14 p.m.
> > > To: Multiple recipients of list delphi
> > > Subject: Re: [DUG]: OffTopic Batch file question
> > >
> > >
> > > Well!  Thanks for all the replies:
> > >
> > > Paul - 1. re use of Pause.  Yep, that would have been a last
> > > resort!
> > >
> > > Pedrocelli - the Patch builder is 3rd party with no source.
> > >
> > > Jeremy - 1 No.  2 I was sort of coming to the conclusion that I
> > > might have to do this.
> > >
> > > Paul and Nello (again!)
> > > This is interesting:
> > > Call NewPatch.exe waited properly on NT4 and Win2K but not
> > > on Win95
> > > Start NewPatch.exe didn't wait on NT4 and Win2K not tested
> > > on Win95
> > >
> > > Now "Start /WAIT NewPatch.exe" does wait on NT4 and
> > > Win2K
> > > so is certainly worth trying on the client's Win95.
> > >
> > > Thanks - I'll let you know how it goes next week.
> > >
> > > Mark
> > >
> > > On 30 May 2003 at 7:48, Nello Sestini wrote:
> > >
> > > > Mark
> > > >
> > > > I believe the START command also is supported in W95
> > > >
> > > > so if in your batch file you have
> > > >
> > > > START /w "foo1.exe"
> > > > START /w "foo2.exe"
> > > >
> > > > foo2 will wait for foo1 to complete before starting
> > > >
> > > > i'm not 100% sure about this - but i think it's correct
> > > >
> > > >
> > > >
> > > > -ns
> > > > http://www.roserox.co.th
> > > >
> > > >
> > > > ----- Original Message -----
> > > > From: "Mark Howard" <[EMAIL PROTECTED]>
> > > > To: "Multiple recipients of list delphi" <[EMAIL PROTECTED]>
> > > > Sent: Friday, May 30, 2003 05:59
> > > > Subject: RE: [DUG]: OffTopic Batch file question
> > > >
> > > >
> > > > > Stacey
> > > > > Thanks for that suggestion but it doesn't fix the problem.
> > > > >
> > > > > The interesting thing is that the batch file that I have
> > > > > written works perfectly on Win2K but not on Win95.
> > > > >
> > > > > It's very frustrating to try to track down, because the client
> > > > > site only run's it once a day so I can only try a new fix once
> > > > > a day.  (Can't fix it on my machine coz it ain't broke)
> > > > >
> > > > > I've also tried a batch file that goes:
> > > > >
> > > > > Call NewPatch.exe
> > > > > Call SetAttrib.bat
> > > > > Call DirBackup.bat
> > > > >
> > > > > Same problem the calls to the batch files run before the
> > > > > NewPatch EXE has even opened.
> > > > >
> > > > > Mark
> > > > >
> > > > > On 28 May 2003 at 16:23, Stacey Verner wrote:
> > > > >
> > > > > > I'm a little rusty here, but I think that Call runs another
> > > > > > process and waits for it.
> > > > > >
> > > > > > e.g.
> > > > > >
> > > > > > Call NewPatch.exe.
> > > > > >
> > > > > > Stacey
> > > > > >
> > > > > > > -----Original Message-----
> > > > > > > From: Mark Howard [mailto:[EMAIL PROTECTED]
> > > > > > > Sent: Wednesday, 28 May 2003 16:20
> > > > > > > To: Multiple recipients of list delphi
> > > > > > > Subject: [DUG]: OffTopic Batch file question
> > > > > > >
> > > > > > >
> > > > > > > Hi All
> > > > > > >
> > > > > > > Sorry for posting this on the main group - but it seems
> > > > > > > OffTopic is not
> > > > > > > behaving.  This is what I posted there a couple of days ago.
> > > > > > >
> > > > > > > Hi
> > > > > > >
> > > > > > > I have a batch file that goes something like:
> > > > > > >
> > > > > > > NewPatch.exe //this is a Windows GUI application
> > > > > > > ATTRIB +R D:\PSLogV2\DBData\*.*
> > > > > > >
> > > > > > > This works fine on my Win2K machine - in that it waits for
> > > > > > > NewPatch to complete before running the ATTRIB line.
> > > > > > >
> > > > > > > On a client's Win95 machine, however it doesn't wait for
> > > > > > > NewPatch.exe to complete (in fact the ATTRIB line runs before
> > > > > > > the GUI app has even opened its window).
> > > > > > >
> > > > > > > Has anyone encountered this problem before?  and is
> > > there a work
> > > > > > > around?
> > > > > > >
> > > > > > > TIA
> > > > > > >
> > > > > > > Mark
> > > > > > >
> > > > > > >
> > > > > > > --------------------------------------------------------------
> > > > > > > -------------
> > > > > > >     New Zealand Delphi Users group - Delphi List -
> > > > > > > [EMAIL PROTECTED]
> > > > > > >                   Website: http://www.delphi.org.nz
> > > > > > > To UnSub, send email to: [EMAIL PROTECTED]
> > > > > > > with body of "unsubscribe delphi"
> > > > > > > Web Archive at:
> > > > > > > http://www.mail-archive.com/delphi%40delphi.org.nz/
> > > > > > >
> > > > > >
> > > ------------------------------------------------------------------
> > > > > > ---- -----
> > > > > >     New Zealand Delphi Users group - Delphi List -
> > > > > >     [EMAIL PROTECTED]
> > > > > >                   Website: http://www.delphi.org.nz
> > > > > > To UnSub, send email to: [EMAIL PROTECTED]
> > > > > > with body of "unsubscribe delphi"
> > > > > > Web Archive at:
> > > > > > http://www.mail-archive.com/delphi%40delphi.org.nz/
> > > > > >
> > > > >
> > > > >
> > > > >
> > > --------------------------------------------------------------------
> > > > > ------
> > > > -
> > > > >     New Zealand Delphi Users group - Delphi List -
> > > > >     [EMAIL PROTECTED]
> > > > >                   Website: http://www.delphi.org.nz
> > > > > To UnSub, send email to: [EMAIL PROTECTED]
> > > > > with body of "unsubscribe delphi"
> > > > > Web Archive at:
> > > http://www.mail-archive.com/delphi%40delphi.org.nz/
> > > >
> > > >
> > > ----------------------------------------------------------------------
> > > > -----
> > > >     New Zealand Delphi Users group - Delphi List -
> > > >     [EMAIL PROTECTED]
> > > >                   Website: http://www.delphi.org.nz
> > > > To UnSub, send email to: [EMAIL PROTECTED]
> > > > with body of "unsubscribe delphi"
> > > > Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
> > > >
> > >
> > >
> > > --------------------------------------------------------------
> > > -------------
> > >     New Zealand Delphi Users group - Delphi List -
> > > [EMAIL PROTECTED]
> > >                   Website: http://www.delphi.org.nz
> > > To UnSub, send email to: [EMAIL PROTECTED]
> > > with body of "unsubscribe delphi"
> > > Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
> > >
> > > ---
> > > Incoming mail is certified Virus Free.
> > > Checked by AVG anti-virus system (http://www.grisoft.com).
> > > Version: 6.0.483 / Virus Database: 279 - Release Date: 19/05/2003
> > >
> > >
>
> --------------------------------------------------------------------------
> -
> >     New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
> >                   Website: http://www.delphi.org.nz
> > To UnSub, send email to: [EMAIL PROTECTED]
> > with body of "unsubscribe delphi"
> > Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
>
> --------------------------------------------------------------------------
-
>     New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
>                   Website: http://www.delphi.org.nz
> To UnSub, send email to: [EMAIL PROTECTED]
> with body of "unsubscribe delphi"
> Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/

Reply via email to