MSFN Forum: multi cmd problem - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

multi cmd problem Rate Topic: -----

#1 User is offline   PercyWalls 

  • Group: Members
  • Posts: 2
  • Joined: 29-June 07

Posted 05 December 2008 - 11:02 PM

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 off
pushd %~dp0
setup.exe -if inst.ini
popd

This 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.ini


If I put the setup.exe -if inst.ini in another file and then

start "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.


#2 User is offline   Kelsenellenelvian 

  • WPI Guru
  • Group: Developers
  • Posts: 7,653
  • Joined: 18-September 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 06 December 2008 - 03:46 AM

Please try this:

@echo off

pushd %~dp0
start /wait setup.exe -if inst.ini
popd

Exit

This post has been edited by Kelsenellenelvian: 06 December 2008 - 03:46 AM


#3 User is offline   PercyWalls 

  • Group: Members
  • Posts: 2
  • Joined: 29-June 07

Posted 06 December 2008 - 09:19 AM

View PostKelsenellenelvian, on Dec 6 2008, 03:46 AM, said:

Please try this:

@echo off

pushd %~dp0
start /wait setup.exe -if inst.ini
popd

Exit


Same result but one question should this be in WPI cmd line or as I'm putting it in a batch file?

#4 User is offline   Kelsenellenelvian 

  • WPI Guru
  • Group: Developers
  • Posts: 7,653
  • Joined: 18-September 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 06 December 2008 - 01:58 PM

View PostPercyWalls, on Dec 6 2008, 08:19 AM, said:

View PostKelsenellenelvian, on Dec 6 2008, 03:46 AM, said:

Please try this:

@echo off

pushd %~dp0
start /wait setup.exe -if inst.ini
popd

Exit


Same 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...

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy