Using a BAT file as service with NSSM

8.6k Views Asked by At

I am writing a .BAT script which goes as follows:

cd "C:\Program Files\WinRAR"

winrar.exe

Double clicking this batch file works fine and openes winrar for me....now i try installing it as service with NSSM

i place nssm.exe in the same directory as my batch file and proceed to install it like following:

enter image description here

enter image description here

All other tabs are left unchanged. when I open services.msc and manually click start on this service it shows running but nothing happens. Can anyone tell me what I did wrong?

1

There are 1 best solutions below

0
On

Sorry for asking this dumb question....it actually runs in baground like all services.