Jump to content

Run Batch as a Service at Windows startup


Recommended Posts

Hi everyone!

I just made a registry entry that runs a .bat file as soon as someone logs into Windows. I made it cause I'm running a Java service that should start everytime the PC starts over from an unexpected shutdown (should be always UP).

I would like to know if it's possible to run that same .bat file at the login screen. Let's say as the same way the Apache Server (in WAMP or AppServ) works: when the PC starts and you're at the login screen, Apache is already running!.

I've looked for this topic, and as far as I understand the way this works, it looks like I need to run such .bat file as a service. Any ideas?

Thanks in advance

Link to comment
Share on other sites

A batch file as a service??? What does it do - start your Java service? Then why not just automatically start your Java application as a service?

Yes. I guess you're right: if I'm able to start a service, it would be the Java app.

Still, how do I run the Java app as a service on the Login Screen?

Link to comment
Share on other sites

  • 2 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy