Link to home
Start Free TrialLog in
Avatar of mecctech
mecctech

asked on

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

Avatar of boowhup
boowhup
Flag of New Zealand image

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.
Avatar of mecctech
mecctech

ASKER

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  ?
ASKER CERTIFIED SOLUTION
Avatar of BatchV
BatchV

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial