1. You are viewing our forum as a guest. For full access please Register. WindowsBBS.com is completely free, paid for by advertisers and donations.

Resolved Command window and background

Discussion in 'Windows XP' started by MarkBL, 2012/02/15.

  1. 2012/02/15
    MarkBL

    MarkBL Inactive Thread Starter

    Joined:
    2012/02/08
    Messages:
    7
    Likes Received:
    0
    I want to run robocopy in background mode. I used the start command with the /b flag, which successfully starts robocopy without opening another command line window. However when I close the command line window from which I launched the start command, the robocopy process dies. It's as if the parent window still has some connection to the backgrounded robocopy command, which I did not expect.

    How can I launch the robocopy command in background mode without having a command line window needing to stay open?
    tnx
     
  2. 2012/02/15
    wildfire

    wildfire Getting Old

    Joined:
    2008/04/21
    Messages:
    4,649
    Likes Received:
    124
    As I recall (I don't use XP anymore nor Robocopy) it's a command line utility? if so you need a CLI window open for it to run.

    What's wrong with just minimizing the window?
     

  3. to hide this advert.

  4. 2012/02/15
    MarkBL

    MarkBL Inactive Thread Starter

    Joined:
    2012/02/08
    Messages:
    7
    Likes Received:
    0
    Yes, it's a command line utility, didn't realize that implied a CLI had to stay open.

    I could do that, but I'm trying to understand what "background" means on windows. On unix I would put an ampersand after a command I wanted to background, I'm trying to understand what the equivalent is in Windows. I thought the "start" command was the equivalent.
     
  5. 2012/02/15
    wildfire

    wildfire Getting Old

    Joined:
    2008/04/21
    Messages:
    4,649
    Likes Received:
    124
    It's not, and as a ubuntu user I understand your confusion, unlike *nix OS's windows does require a terminal window to be open to run DOS like programs.

    EDIT: The Start command simply means start this program and continue with the script (batch) without waiting for any response.
     
    Last edited: 2012/02/15
  6. 2012/02/15
    MarkBL

    MarkBL Inactive Thread Starter

    Joined:
    2012/02/08
    Messages:
    7
    Likes Received:
    0
    I misunderstood what the /b flag means. I thought that when it said it executed the command without running it in a separate command window that it was running it without being connected to any command window. As you say, that's not true.
    tnx
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.