Question about running EXE from a batch file

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



I am trying to gather more data about this because the information that I am
getting frankly does not make sense. So I hope that you can forgive me
posting at this early phase just so I can check my assumptions.

We are running a batch file, I assume through CMD.EXE but that is one of my
assumptions, that in turn runs a 16-Bit DOS exe using 'start /Wait
progname.exe'.

What I hear is happening is that the exe is opening in its own window and
the users are closing the command window that is running the batch file
before progname.exe is finished running.

I know that this is how 'start /Wait' is documeneted to behave for a 16-bit
executable so I asked that the person running the test change the batch file
to call progname.exe without using the start command.

But they tell me that that when they replace 'start /Wait ...' with
'progname.exe' that a new window is opened anyway for progname.exe and the
batch file continues execution and exits completely.

Any thoughts on why the exe might not be running in the same context as the
batch file? Is there a way to force the exe to run in the same context as
the batch file?



Many thanks in advance,
J


.



Relevant Pages

  • Re: For Function with Pipe Problem.
    ... for details and see if you can use it to get that visible window. ... > Any ideas how to run an exe aplication to foreground? ... > Every time it runs it pops svchost window (wsh script). ... >> Just change the string that cmd points to to whatever your batch file is. ...
    (microsoft.public.win2000.cmdprompt.admin)
  • Re: Software to queue up av/as apps to run on files, also queue of scanning?
    ... will run in sequence whatever anti-virus, etc., apps we wish to run on ... Set the default value for this key to be your context menu text, ... name to the batch file and thence the apps. ... If you don't want a batch file and console window you will probably ...
    (alt.comp.anti-virus)
  • Re: Software to queue up av/as apps to run on files, also queue of scanning?
    ... will run in sequence whatever anti-virus, etc., apps we wish to run on ... Set the default value for this key to be your context menu text, ... name to the batch file and thence the apps. ... If you don't want a batch file and console window you will probably ...
    (alt.comp.anti-virus)
  • Re: Rollout Registry Settings via SMS (w/Adv Clients)
    ... If by an .exe you mean an Installshield script, which does NOT have an msi ... so I went with DFS. ... batch file can point to the DFS share where the registry entries are located. ...
    (microsoft.public.sms.swdist)
  • Re: How to deploy real cert in packaged .exe (VS 2005, .net cf 2.0 sp2, WM 5.0)
    ... ..exe for the mobile device I developed an app for. ... You can run a batch file after you've built your project/solution or as part ... Or do I do the signing using the the tools they send me? ...
    (microsoft.public.dotnet.framework.compactframework)