run a batch file as windows nt service

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

radhika123

Thread Starter
Joined
Apr 2, 2008
Messages
6
Hi friends
I want to know how to run a batch file as windows NT service.
I got some information in the following link

http://support.microsoft.com/kb/q243486/

I tried it but i want to know what we need to include in Autoexnt.bat

Please give me reply fast.its very urgent.

Thanks in advance.
 
Joined
Apr 7, 2007
Messages
4,910
You Can Run A Batch File Before Login Using Task Scheduler.
Schedule It To Run "When My Computer Starts" From The List Of Choices
 
Joined
Aug 1, 2003
Messages
51,988
You can set any batch file to run as a login script in gpedit.msc.

What exactly are you trying to do? It makes little sense to try to run a batch file as a service. Services have special characteristics that make them more appropriate than just running a program the normal way, such as being able to restart in case of failure, run when no user is logged on, or run with alternate credentials, or run under specified conditions.

Another method for running a batch file on boot is to include it in autoexec.bat and then enable the parsing of autoexec.bat on boot.
 

radhika123

Thread Starter
Joined
Apr 2, 2008
Messages
6
hi
First i will tell wht i have done.

First I copied the following three files into this system path C:\WINDOWS\system32

1. Autoexnt.exe
2.Servmess.dll and
Instexnt.exe

And then i Created the Autoexnt.bat and copied the tomcat startup.bat fileinto this Autoexnt.bat file.
Then the Autoexnt service is creating in the control panel services but after starting the service the tomcat home page is not opening.

I also tried second method as like this.I created Autoexnt.bat as follows




@echo off
rem ---------------------------------------------------------------------------
rem Start script for the Tomcat Server
rem ---------------------------------------------------------------------------

call "C:\Program Files\SDE3.0\tomcat-5.5.16\bin\startup.bat" start



Till to i am not getting.Its not working.

Can u send me the steps for this.

Thanks for u r response.
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Top