I coded a quick test and used nssm and installed the exe as a service and ran it. Now, it runs fine though I can't see output in either the designated output file from nssm or eventviewer itself. How do I get some output into a file perhaps? And is this the right way to run it as a service.
Code: Select all
If OpenConsole()
EnableGraphicalConsole(#True)
ConsoleColor(10, 0)
Repeat
PrintN("Execute...")
Delay(1000)
ForEver
CloseConsole()
EndIf