batch command to exit a programme

S

simonc

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.
 
P

Pegasus [MVP]

simonc said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top