I am working on creating a simple windows service. I believe my script works; however, if anyone could critic and give some new suggestions, it will be greatly appreciated.
if {exists service whose (service name of it as lowercase = (parameter “ServiceName” of action as lowercase)}
wait cmd /c sc create servicename binpath= “%windir%\securedfolder\servicename.exe” start=“auto” displayname="servicename"
Endif
Thanks