• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 624
  • Last Modified:

Batch Does NOT Excute 2nd Command!

I have created a batch file with two commands, but when I run it, it executes the first command/line and stops.

What should I do to to run/execute all lines ?


auto-vms.abt:

D:\Vmware-Workstation\vmware -x D:\Virtual-Machines\XP-Pro\xp-pro.vmx

D:\Vmware-Workstation\vmware -x D:\Virtual-Machines\Ubuntu-workstation\Ubuntu-workstation.vmx
0
mshamsan
Asked:
mshamsan
1 Solution
 
ChetOS82Commented:
Is the batch file simply stopping at the first one, or is it returning to the command line?

It might be waiting for vmware to return.
0
 
oBdACommented:
Use "start":
start "" D:\Vmware-Workstation\vmware -x D:\Virtual-Machines\XP-Pro\xp-pro.vmx
start "" D:\Vmware-Workstation\vmware -x D:\Virtual-Machines\Ubuntu-workstation\Ubuntu-workstation.vmx

Open in new window

0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now