PercyWalls Posted December 6, 2008 Posted December 6, 2008 I am trying to run 2 commands from WPI. 7.2.0 The first installs the software, and the second cleans up the install.My first command calls r:\math\matlab_2008a\matlab_setup.cmd@echo offpushd %~dp0setup.exe -if inst.ini popdThis will install the program, but the batch finishes before the install is coomplete, and the 2nd command runs with nothing to cleanup.I've tried start "inst" /WAIT "setup.exe -if inst.ini"but get an error stating it cannot find the program setup.exe -if inst.iniIf I put the setup.exe -if inst.ini in another file and thenstart "inst" /I /WAIT /D r:\math\matlab_2008a "m-set.cmd"the program will install but I then have 2 command windows open which do not terminate when the install is finished, so the cleanup command cannot run.
Kelsenellenelvian Posted December 6, 2008 Posted December 6, 2008 (edited) Please try this:@echo offpushd %~dp0start /wait setup.exe -if inst.ini popdExit Edited December 6, 2008 by Kelsenellenelvian
PercyWalls Posted December 6, 2008 Author Posted December 6, 2008 Please try this:@echo offpushd %~dp0start /wait setup.exe -if inst.ini popdExitSame result but one question should this be in WPI cmd line or as I'm putting it in a batch file?
Kelsenellenelvian Posted December 6, 2008 Posted December 6, 2008 Please try this:@echo offpushd %~dp0start /wait setup.exe -if inst.ini popdExitSame result but one question should this be in WPI cmd line or as I'm putting it in a batch file?Sorry that would be inna cmd file called by WPI...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now