Re: commands not waiting, /wait not helping




"bh" <bh@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:381BF8DF-569D-4C48-B999-11979823F685@xxxxxxxxxxxxxxxx
> 2 questions:
> 1) Windows changed the behavior of running a GUI app from a batch file or
> cmd prompt so it no longer waits for the app to finish. But on one XP
> machine, running a gui app waits, and on another running that same app does
> not. Apparently there's a config option somewhere that controls this--anyone
> know where?

Nope. Windows *NEVER* waited for GUI apps run from batch files to
complete before continuing with the next command. It does wait for console
apps to complete though.

> 2) This came about because I'm trying to automate building several
> installers. But Wise.exe requires /c as a parameter. If I do
> start /wait wise.exe /c "path to .wse script"
> I get an error that /c is an invalid switch--apparently for the start
command.
> I've tried every possible combination of quotations around the pieces, an
> extra " " dummy arg, and avoiding the exe and just running the .wse via
> implied associations, and nothing works.
> Any ideas?

Something is probably fooling you with a confusing error message. START
will ignore everything after the name of the executable and pass it to the
target program. It's probably WISE.EXE which is rejecting the /c switch.

--
-GJC [MS Windows SDK MVP]
-Software Consultant (Embedded systems and Real Time Controls)
- http://www.mvps.org/ArcaneIncantations/consulting.htm
-gchanson@xxxxxxxx

.



Relevant Pages

  • Re: Hidding a program from Windows toolbar
    ... but we didn't want a taskbar entry. ... So it has a tray icon. ... shutting this process down will render the GUI app unusable. ... I created a MFC dialog-based program with VC++ 6.0 and Windows XP Pro, ...
    (microsoft.public.vc.mfc)
  • Re: ANN: RubyCLR first drop
    ... > How crazy would I have to be to try making a Windows Forms GUI app using ... clumsy GUI toolkit anyway. ... I probably just need to get better at packaging working subsets of the full Ruby install on Windows, ...
    (comp.lang.ruby)
  • Re: Disk read is too slow.
    ... When I run my command line program that compares all of the files ... line program take so much longer, and what windows functions can I use to ... uses the console interface. ... You can even have a GUI app, ...
    (microsoft.public.vc.mfc)
  • Re: ANN: RubyCLR first drop
    ... >> How crazy would I have to be to try making a Windows Forms GUI app using ... > clumsy GUI toolkit anyway. ... full Ruby install on Windows, ...
    (comp.lang.ruby)
  • Re: Disk read is too slow.
    ... When I run my command line program that compares all of the files copied to ... and what windows functions can I use to make it much ... You can even have a GUI app, which uses a console to ...
    (microsoft.public.vc.mfc)

Loading