Mark,
Why not have the patch program execute the following commands as it exits?  It
could be parameterised, so an ini file tells the patch program what (if any)
batch file to execute on exit, and the attribute and backup commends are in the
batch file.

In fact you could go further and allow for another batch file to be executed on
startup, though you might want to make sure it executes the "pre-patch" batch
file synchronously (not sure if you'll get similar problems there).

So, instead of driving everything from the batch file, you drive it all from the
patch program.

HTH
Pedrocelli  :-)

----- Original Message -----
From: "Mark Howard" <[EMAIL PROTECTED]>
To: "Multiple recipients of list delphi" <[EMAIL PROTECTED]>
Sent: Friday, May 30, 2003 10:59 AM
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/

Reply via email to