0

I have three batch files which start services of kibana (in windows). How can I start all the batch files automatically when the system is restarted.

The command to run the bat files are

path\elasticsearch-5.5.2\bin>elasticsearch

path\logstash>bin\logstash -f Couchdb_to_elasticsearch.conf

path\kibana-5.5.2-windows-x86\bin>kibana.bat
Axel
  • 3,331
  • 11
  • 35
  • 58
  • Possible duplicate of [Run Batch File On Start-up](https://stackoverflow.com/questions/21218346/run-batch-file-on-start-up) – Mihai Ovidiu Drăgoi Sep 25 '17 at 10:41
  • Would not say so; this requests on *restart* specifically after my understanding – geisterfurz007 Sep 25 '17 at 11:50
  • You might be able to get something from the eventlog. The powershell provides the command `get-eventlog` to query it (which then can be used from the bacth-file). I tried to find something about the relevant codes but could not find anything quickly. You will surely have more luck :) – geisterfurz007 Sep 25 '17 at 12:07
  • 1
    If those batch files really start __services__, why are the services not configured to be automatically started by system? – Mofi Sep 25 '17 at 17:14

0 Answers0