Solved

Running a batch file as a service

Posted on 1998-02-02
6
212 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
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
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 

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 100 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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Greetings, Experts! First let me state that this website is top notch. I thoroughly enjoy the community that is shared here; those seeking help and those willing to sacrifice their time to help. It is fantastic. I am writing this article at th…
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 video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

770 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