1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

batch command to exit a programme

Discussion in 'Windows XP' started by simonc, Mar 26, 2010.

  1. simonc

    simonc Flightless Bird

    As the first command in a backup batch file I want to open a media management
    console. I can do this with the command mmc followed by the path of a .msc
    file which opens the media page. Before starting the backup I then need to
    close mmc.exe. How do I do this from the batch file?

    Grateful for advice.
     
  2. Pegasus [MVP]

    Pegasus [MVP] Flightless Bird

    "simonc" <simonc@discussions.microsoft.com> wrote in message
    news:C497E32B-2082-4BF1-9952-1DE5C419E3A9@microsoft.com...
    > As the first command in a backup batch file I want to open a media
    > management
    > console. I can do this with the command mmc followed by the path of a
    > .msc
    > file which opens the media page. Before starting the backup I then need to
    > close mmc.exe. How do I do this from the batch file?
    >
    > Grateful for advice.


    You could use taskkill.exe.
     

Share This Page