Batch Does NOT Excute 2nd Command!

Posted on 2012-08-31
Last Modified: 2012-08-31
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 ?


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
Question by:mshamsan
    LVL 18

    Expert Comment

    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.
    LVL 82

    Accepted Solution

    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


    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    Suggested Solutions

    Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
    Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
    Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
    In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now