View Single Post
  #8  
Old 02-26-2008, 12:16 PM
ericp ericp is online now
Registered User
 
Join Date: 06-07-2006
Posts: 17
Sample Run Program Step:
Code:
<step action='Run Program'>
	<command>"C:\program files\vmware\vmware workstation\vmrun.exe" -gu user -gp password runProgramInGuest "i:\vm images\smoketest win2000\Windows 2000 Professional.vmx" "c:\winnt\notepad.exe"</command>
	<indent type='3'>1</indent>
	<name>Run Program</name>
	<outputfrom type='3'>1</outputfrom>
</step>
You'll have to change the username, password, path to the VMX, and the program you want to execute.

Another note: This command will 'wait' until the program you launch terminates. In this example, by default, visual build will 'wait' until Notepad terminates inside the VM. If you uncheck "Wait for Completion", it'll launch the script, and continue on with the build.
Reply With Quote