December 6, 200817 yr 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.
December 6, 200817 yr Please try this:@echo offpushd %~dp0start /wait setup.exe -if inst.ini popdExit Edited December 6, 200817 yr by Kelsenellenelvian
December 6, 200817 yr Author 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?
December 6, 200817 yr 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...
Create an account or sign in to comment