Results 1 to 5 of 5

Thread: Shutdown window after running batch file

  1. #1
    Join Date
    Jan 2009
    Posts
    30

    Shutdown window after running batch file

    heya all!

    I have SyncToy via a shortcut in my Startup programs folder that runs the line "C:\Program Files\SyncToy 2.0\SyncToyCmd.exe" -R ,but after it running, the window keeps open. I know how to minimize the same but no clue how to make it close? guys can you give some inputs regarding this

  2. #2
    Dr. V Guest

    Re: Shutdown window after running batch file

    In Windows XP the window, that the batch file stay opens, until applications and documents opened by that batch file remain open., use the start command in front of the file names. E.g., If we write a batch file to open tlg and a word document

    start "" "C:\Program Files\TLGWork\tlg32.exe"
    start "" "C:\My Documents\practice.doc"

  3. #3
    Join Date
    May 2008
    Posts
    4,085

    Re: Shutdown window after running batch file

    yes i know how to that,even i tried a lot days myself to make it fine
    went thorough a lot of threads and finally i figured out
    this will work for you certainly,

    start C:\"Program Files\SyncToy 2.0\SyncToy.exe" -R
    exit
    enjoy...

  4. #4
    Join Date
    May 2008
    Posts
    2,680

    Re: Shutdown window after running batch file

    Batch files allow MS-DOS and Microsoft Windows users to create a lists of commands to run in sequence once the batch file has been executed. A simple batch file does not require any special programming skills and can be done by users who have a basic understanding of MS-DOS commands. as far as your intention to make the window to shut down it can be done with simple instructions
    start C:\"Program Files\SyncToy 2.0\SyncToy.exe" -R
    good for you

  5. #5
    Join Date
    Dec 2010
    Posts
    1

    Re: Shutdown window after running batch file

    Quote Originally Posted by Solomon View Post
    yes i know how to that,even i tried a lot days myself to make it fine
    went thorough a lot of threads and finally i figured out
    this will work for you certainly,

    start C:\"Program Files\SyncToy 2.0\SyncToy.exe" -R
    exit
    enjoy...
    Thank you for this!! I have an application depending on the cmd window closing to continue execution and looked everywhere to find out how to do it. Your solution works!!!

Similar Threads

  1. How to run batch file hidden in dos window
    By Alfanumeric in forum Windows Software
    Replies: 6
    Last Post: 26-06-2011, 08:01 AM
  2. How to exit a Windows MS-DOS window through a batch file.
    By Juaquine in forum Operating Systems
    Replies: 4
    Last Post: 27-03-2010, 05:31 PM
  3. VBscript to run batch file carry on running
    By hokaday in forum Software Development
    Replies: 1
    Last Post: 12-02-2010, 01:34 AM
  4. Windows scheduler: Running a batch file as another user?
    By Andrew Hodgson in forum Windows Server Help
    Replies: 9
    Last Post: 10-03-2008, 09:48 AM
  5. Running a batch file from another?
    By Linn Kubler in forum Windows Server Help
    Replies: 2
    Last Post: 28-02-2008, 09:57 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,865,265.11059 seconds with 17 queries