Solved

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

Posted on 2009-05-14
4
381 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Vbscript 8 78
Combine DSQuery result into loop script 6 52
Installing Git and chefdk via bat script 8 56
Recursively Delete Files 5 65
The following is a collection of cases for strange behaviour when using advanced techniques in DOS batch files. You should have some basic experience in batch "programming", as I'm assuming some knowledge and not further explain the basics. For some…
This article was inspired by a question here at Experts Exchange (http://www.experts-exchange.com/Software/Photos_Graphics/Images_and_Photos/Q_28629170.html). The requirements stated in that question are (1) reduce the file size of a large number of…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

914 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

18 Experts available now in Live!

Get 1:1 Help Now