Want to have vbscript execute series of commands sequentially
Posted on 2008-11-08
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")
set wshshell = nothing
msgbox "Done executing program"