Quantcast
Channel: VMware Communities : Popular Discussions - VIX API
Viewing all articles
Browse latest Browse all 34639

Configuring Output from vmrun runProgramInGuest

$
0
0

 

Hello,

 

 

I am using vmrun to run an MSDOS batch file inside a Windows vm as follows:

 

 

vmrun -T vc -h https://<vcenterservername>:443/sdk -u username -p password -gu Administrator -gp administratorpassword runProgramInGuest "[datastoreLUNname] vmfoldername/vmname.vmx" C:\batchfilename.bat 

 

 

 

 

 

So this code works - I start if from my Windows XP laptop and it starts a batch file runnining inside a Windows virtual machine.  However, the output displays inside the virtual machine and not at the command line of tmy Windows xp laptop - where I need it to display.  As each line of the MSDOS file executes inside the Windows VM, I need the output directed to my WindowsXP laptop so I can confirm each command is successful.  Can this be done?

 

 

thanks

 

 


Viewing all articles
Browse latest Browse all 34639

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>