Making command run on startup

We have an application Web server that whenever we reboot, I have to open a command prompt window, and run :  servletrunner -p 8081 -d d:\pendoc\servlet

The window has to stay open for this to run.

I need to figure out a way to do this automatically.  The big thing is getting it running in a DOS application window.  Is this even possible?
LVL 1
truckfanatic_comAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Chr1s1nNYCCommented:
use notepad to create a batch file with

START servletrunner -p 8081 -d d:\pendoc\servlet

in it and put the batch file in the Programs-Startup folder of the account you log in with.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
pbarretteCommented:
Hi Truckfanatic,

You will need to run this program as a Win2K service.

Look here for instructions using tools from the Resource Kit:
http://support.microsoft.com/?kbid=137890

pb
0
truckfanatic_comAuthor Commented:
Dude!  Thanks :-)
0
Cloud Class® Course: Microsoft Exchange Server

The MCTS: Microsoft Exchange Server 2010 certification validates your skills in supporting the maintenance and administration of the Exchange servers in an enterprise environment. Learn everything you need to know with this course.

pbarretteCommented:
Hi Truckfanatic,

Keep in mind that the solution from Chr1s1nNYC will run your program only when the user logs into the computer.

pb
0
truckfanatic_comAuthor Commented:
But, from what I understand is that this servlett must be running in an open DOS window.  Is that possible to do with a service?
0
Chr1s1nNYCCommented:
I didn't check what the exe in question was when I answered this question. I just went on the theory that if it worked from a DOS window manually a batch file would do the same thing. If it's a service then you should probably run it as one....
0
truckfanatic_comAuthor Commented:
It isnt a service...I would like it to be one, but I dont think it was possible.
0
pbarretteCommented:
Hi Truckfanatic,

It looks like you are correct. The servletrunner program does not load correctly as a service.

I have looked around, however, and found this for you:
http://www.geocrawler.com/archives/3/6687/2002/6/0/8842636/

It's called MiniServer and is a replacement for servletrunner which will allow you to run your servlet as a Windows service. The link to the software on that page is incorrect. The correct link is here:
http://cjos.sourceforge.net/redist/mirror/jos1o/jos1o-minisrv1c-2-win.zip

More info here:
http://cjos.sourceforge.net/redist/wiki/M/MiniServer.html

pb
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows 2000

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.