VMware scripting

Associate
Joined
6 Feb 2004
Posts
689
Location
Herts
I'm having trouble supsending multiple guest operating systems on my virtual server host.

The system is Windows based and I am wanting to write a batch file that will suspend all the guest operating systems on a host why a backup is being taken, then after the backup has completed I would like to start them again.

Suspending and Starting one guest o/s is fine using the following batch file:

"vmware-cmd" "D:\Virtual Machines\guestos1.vmx" suspend

But when I try to apply this to more than one guest o/s the process fails :confused:

"vmware-cmd" "D:\Virtual Machines\guestos1.vmx" suspend
"vmware-cmd" "D:\Virtual Machines\guestos2.vmx" suspend
Can anyone advise where I am going wrong?

Dan.
 
Managed to sort this out myself by adding "call" to the beginning of each line.

call "vmware-cmd" "D:\Virtual Machines\guestos1.vmx" suspend
call "vmware-cmd" "D:\Virtual Machines\guestos2.vmx" suspend
 
Back
Top Bottom