Create Batch File for Server2003 to kill app and then to start app

I need assistance with writing a bat file to stop an application running on Win Server 2003 sp2
and then starting the app again.  I have tried using the Taskkill command but it keeps telling me this is not a valid win32 Application......Access Denied.  Any assitance would be appreciated
C:\>taskkill.exe /f /im MUMServer.exe
C:\>taskkill.exe /f /im MUMServer.exe

Open in new window

Who is Participating?
BatchVConnect With a Mentor Commented:
Hi I found this link that might do what you want to achieve

I think it is the same for server 2003
Although not strictly a batch file solution, you could get a 3rd party app like Firedeamon (sp) , which will turn your app into a service. you can then create a batch file with something like ...

@echo off
net stop MumServer
net start MumServer

Since it gets installed as a service , you can set it to start on system startup, or set it to manual, and start/stop it via batch files, scheduled tasks, vbscipt etc etc.
mecctechAuthor Commented:
I have tried Firedeamon and not had any success getting app to run as a service!
Where exactly is it not working, in setting up the service, or trying to start it  ?
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.