Powershell to start background service

GOAL: Start MyExe.exe which is a background service for testing purposes

ANSWER:

Start Powershell in Administrator mode. 

Navigate to the desired directory. Then:

    Start-Process -FilePath MyExe.exe 

   sc.exe create "XXXXXService" binpath= C:\XXXXX\bin\Release\net8.0\MyExe  

Comments

Popular posts from this blog

Upgrading to .NET8 from desktop versions 4.8.X

JSON Web Tokens

GHL > Set website so shorter URL address