Solved

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

Posted on 2009-05-14
4
378 Views
Last Modified: 2012-08-14
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

0
Comment
Question by:mecctech
  • 2
4 Comments
 
LVL 5

Expert Comment

by:boowhup
ID: 24391042
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.
0
 

Author Comment

by:mecctech
ID: 24395321
I have tried Firedeamon and not had any success getting app to run as a service!
0
 
LVL 5

Expert Comment

by:boowhup
ID: 24407511
Where exactly is it not working, in setting up the service, or trying to start it  ?
0
 
LVL 5

Accepted Solution

by:
BatchV earned 500 total points
ID: 34314813
Hi I found this link that might do what you want to achieve

http://www.neowin.net/forum/topic/266875-start-and-stop-programs-with-batch/

I think it is the same for server 2003
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

You may have already been in the need to update a whole folder stucture using a script. Robocopy does it well and even provides a list of non-updated files in a log (if asked to). Generally those files that were locked by a user or a process by the …
Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now