Jump to content

Start and taskkill an application


Recommended Posts

For my unattended install I have to start Outlook Express and directly close it again. (On first start OE writes it's useraccounts into the registry that I want to delete.)

But when I call it like this

start "%programfiles%\Outlook Express\msimn.exe"

then the batchfile waits until I close Outlook Express.

Even if I put

taskkill.exe /F /IM msimn.exe

behind the code the batch file doesn't continue until I close Outlook Express.

How can I call Outlook Express and close it after a few seconds, for example with

sleep.exe 3[code]?
Link to comment
Share on other sites


In your first batch file, call a second batch to start your application

add sleep XX amount of time in your first batch to give the app time

to start, then kill the app in your original batch.

I' can post my code later tonight

I use this to copy my settings/bookmarks into Opera as the profile is

not created until it has started once.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...