Link to home
Start Free TrialLog in
Avatar of smm57
smm57Flag for United States of America

asked on

Want to have vbscript execute series of commands sequentially

I am a newbie to vbscripting... I want to have a .vbs file, when invoked at the command line, start a VB program .exe I wrote and "wait" for it to finish before proceeding further. The VB program writes a bunch of fortran source files that I will subsequently use in a Visual Fortran in the MSdev environment to create a new msdev based visual fortran project. I then want to be able to create a VStudio session object so as to be able to manipulate an instance of the IDE using these newly created files. I will also want to set several configuration aspects of the project via the above mentioned session object as well, but this is beyond the scope of this question.

The important point here is that I want to have vbscript operate on "my commands" sequentially....

I know this is not the default behavior because when I run the following vbs commands in a .vbs file the msgbox pops up way before my executable finishes, thanks in advance for any help.....


Set wshShell = WScript.CreateObject ("WSCript.shell")
wshshell.run "c:\VerBuild\VerGen.exe"
set wshshell = nothing
msgbox "Done executing program"
ASKER CERTIFIED SOLUTION
Avatar of RobSampson
RobSampson
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial