c# C# Windows Service Startup Arguments Here are a few tips on passing arguments to a .NET Windows Service. Install a Windows Service with Arguments I found the easiest way to install my service with a path that includes arguments, ala: c:\myservice\myservice.exe --port 8080 was to use