Linked Questions

135 votes
10 answers
135k views

Windows XP or later Windows: How can I run a batch file in the background with no window displayed?

I know I have already answered a similar question (Running Batch File in background when windows boots up), but this time I need to launch a batch: from another batch, without any console window ...
VonC's user avatar
  • 1.4m
93 votes
9 answers
315k views

Run Batch File On Start-up

Is there a way to start multiple programs in a batch file on system start-up? In addition to that, in that batch file, I would like to be able to say: Once I execute a program, wait until that program ...
Randomishlying's user avatar
58 votes
8 answers
97k views

Activate virtualenv and run .py script from .bat

I'd like to use Windows Task Scheduler to run a python script within a virtual environment. I'd like the Scheduler to run a .bat file that will activate the virtualenv run the script These steps ...
Clark D's user avatar
  • 583
57 votes
4 answers
52k views

Elastic Kibana - install as windows service

How can I install Elastic Kibana (which is just a batch file) as a windows service? It probably needs to depend on the ElasticSearch process as well (this assumes I'm running it on the same server)
jhilden's user avatar
  • 12.3k
24 votes
8 answers
43k views

Run Java application as a service

I would like to run a Java application as a service. Unfortunately, I am limited in that I can't use something like the Java Service Wrapper (which does appear to be an excellent tool). Is there any ...
JasCav's user avatar
  • 34.6k
20 votes
6 answers
19k views

Spring boot JAR as windows service

I am trying to wrap a spring boot "uber JAR" with procrun. Running the following works as expected: java -jar my.jar I need my spring boot jar to automatically start on windows boot. The nicest ...
roblovelock's user avatar
  • 1,981
7 votes
8 answers
9k views

Run PHP script in background on Apache start/restart(Windows Server)

I've installed Apache 2.4 with PHP 5.4 on Windows Server 2008 following instructions from this manual: Apache installing manual. Apache runs as a service now. My application requires a php websocket ...
gxx's user avatar
  • 73
5 votes
4 answers
14k views

How to run solr on a windows server so it starts up automatically?

How can I run solr on a windows server, so it starts up automatically? I run it with: java -jar start.jar but I need the server to do this automatically.
Blankman's user avatar
  • 264k
0 votes
1 answer
10k views

Trying to run batch file as a Windows service

I have created a simple batch file to start my redis node. @echo off start cmd.exe /k "cd C:\Users\cmguser\Desktop\7000 & redis-server ./redis.conf" This batch file is working fine, if I am ...
Rohit Bagjani's user avatar
6 votes
2 answers
3k views

Running Python Program as Windows Service with a specific conda virtual environment

I am trying to run a python program, written using Anaconda, as a Windows Service. The complexity is that I'd like to run the Windows Service from a specific conda virtual environment. The idea being ...
Peer's user avatar
  • 201
0 votes
1 answer
1k views

Run an infinite command on Windows Server even if someone is logged out

I am trying to put up a realtime server with php -q c:\inetpub\wwwroot\os\realtime\server.php. The problem is that this command is infinite, so once the Power Shell window is closed the command stops ...
Pete's user avatar
  • 333
0 votes
2 answers
1k views

Batch file checking firefox is open?

I want to write a batch file to keep checking every 20 seconds if firefox is open, if open then there is no action required. if firefox is closed, the batch file needs to force open it on a certain ...
user2165550's user avatar
5 votes
0 answers
1k views

Keycloak 18 with Quarkus as Windows Service

With Wildfly as an application server, it was possible to run KeyCloak as a service on a Windows Server as follows (for example behind an IIS): .\service.bat install /name keycloak /display Keycloak /...
Dennis's user avatar
  • 4,069
0 votes
2 answers
1k views

Windows Task Scheduler stops tasks when it's been running for X days

I am creating a scheduled task from command line: schtasks /Create /SC ONSTART /TN "Zookeeper server" /TR D:\Zookeeper\zookeeper-3.4.6\bin\zkServer.cmd /RU System /V1 /f The issue is that the "Stop ...
Amaranth's user avatar
  • 2,463
0 votes
2 answers
1k views

how to configure installed windows service startup type to automatic during installation using InstallShield

I am a total newbie to InstallShield. I am trying to create a installer for my project in which I have to install Wildfly 11 as service. Wildfly 11 has a file service.bat which suits my need very well....
k.lo's user avatar
  • 413

15 30 50 per page