Quantcast
Channel: VMware Communities : Popular Discussions - VMware Server 1
Viewing all articles
Browse latest Browse all 74849

vmware-cmd exits my bat file when it runs

$
0
0

 

I'm trying to back up some virtual machines with a .bat script, and this should be simple, right?

 

 

Here's a chunk of the script:

 

 

echo off

vmware-cmd "c:\virtual machines\dev\dev.vmx" -q stop

copy "c:\virtual machines\dev\"*  x:\

 

 

So, the vmware-cmd executes, the vm shuts down, and I get shutdown() =1 at the command line, and the bat halts without further comment.  Never makes it to the copy.  So, I tried making that vmware-cmd line a separate bat file of its own that is called from within the main one - thinking that if the child bat exits, it'll just resume execution of the parent.  Nope, it stops all batch execution cold.

 

 

Why?

 

 


Viewing all articles
Browse latest Browse all 74849

Trending Articles



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