Solved

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

Posted on 2009-05-14
4
400 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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 …
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…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

626 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