Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Running a batch file as a service

Posted on 1998-02-02
6
Medium Priority
?
223 Views
Last Modified: 2013-12-19
My question is simple, and for those with time, probably easy to answer.  So earn a quick 100 points and help me here.

I am running NT Server 4.0 on a Dual Pentium Pro 200 system with 256 megs of RAM.  This is the intranet server here at work.

We have some java programs that require server side control to function (directory mapper, etc).  Right now, I have the java programs run when I login, but I don't want to have to be logged in.  If the server crashes, I can reboot it remotely, but logging the machine in is a problem.

I know this can be done, but I can't remember how.  All I want to do is have these batch files run as a system service.
0
Comment
Question by:libido011397
[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
6 Comments
 
LVL 2

Expert Comment

by:igroove
ID: 1570753
Use the AT scheduler as an administrator.  Don't forget to enable it in your service control panel.

0
 
LVL 2

Expert Comment

by:moellert
ID: 1570754
The correct way is to use the srvany.exe program from the Rersourcekit. You will find a txt.file which explains the correct way to implement it. If you have any questions to feel free to ask me.
If this is the correct answer for you, please tell me and I will change this comment to an answer.
0
 
LVL 2

Expert Comment

by:moellert
ID: 1570755
The correct way to do this, is to use the srvany program from the Resourcekit. This tool makes it possible to run any program (exe, bat, cmd) as a service. You will find a txt.file which explains the correct way to implement it. If you have any questions to feel free to ask me.
If this is the correct answer for you, please tell me and I will change this comment to an answer.
0
Building an interactive eFuture classroom

Watch and learn how ATEN provided a total control system solution including seamless switching matrix switch, HDBaseT extenders, PDU, lighting control to build an interactive eFuture classroom.

 

Author Comment

by:libido011397
ID: 1570756
Sorry, I just like moellert's answer more...

moellert:  Write that as an answer to receive the points
0
 
LVL 3

Expert Comment

by:os012897
ID: 1570757
There is also the free tool AutoExNT that lets you start a batch-file called autoexnt.bat where you in turn can do whatever u want.

Greetings,

        os

0
 
LVL 2

Accepted Solution

by:
moellert earned 400 total points
ID: 1570758
The correct way to do this, is to use the srvany program from the Resourcekit. This tool makes it possible to run any program (exe, bat, cmd) as a service. You will find a txt.file which explains the correct way to implement it. If you have any questions to feel free to ask me.
If this is the correct answer for you, please tell me and I will change this comment to an answer.  
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

We recently endured a series of broadcast storms that caused our ISP to shut us down for brief periods of time. After going through a multitude of tests, we determined that the issue was related to Intel NIC drivers on some new HP desktop computers …
This is the first one of a series of articles I’ll be writing to address technical issues that are always referred to as network problems. The network boundaries have changed, therefore having an understanding of how each piece in the network  puzzl…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

688 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