Running a vb app from a abtch file / dos prompt

Andrew Crofts
Andrew Crofts used Ask the Experts™
on
I have a vb app which has a user interface or if passed a parameter will not show the user interface but run straight through.
I want to kick this off from a DOS BAT file.

When I try this (using call myvbapp.exe /parm) the app runs but control does not return control to the bat even when the app has completed. The bat just seems to hang.

If I run it from the DOS prompt (myvbapp.exe /parm) it returns immediatly to the c: prompt though the app has been kicked off and runs apparently normally.

Help please.
TIA
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Commented:
Have you tried using "start" instead of call?If you want the batch file to wait until the app is finished you can try start with the /wait switch.
HI
I have tested a a small app which I think does what you are trying to do and it works.

I have put the files into a zip archive which you can download from http://www.kedros.net/temp/tmp.zip

Hope this helps

Author

Commented:
The answer actually is to lose the call it would seem.
The call is used for invoking other bat files and having control return.
Ensure you’re charging the right price for your IT

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

in invoking batch file, you need use
  CALL KO.BAT
to having control return.
it's a dos skill.

Author

Commented:
I just said that
Points refunded and placed in PAQ

Computer101
E-E Admin

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial