static void Main(string[] args) { ProcessLauncher service = new ProcessLauncher(); if (args.Length > 0 && args[0] == "/i") { //Launched not as service. service.LaunchCommandLine(); } else { //Standard service entry point. ServiceBase.Run(service); } }
static void Main(string[] args) { string pwd = "ShuliA3342!@#$%^&"; string encrypt = encrypt1(pwd); Console.WriteLine(encrypt); encrypt = encrypt1(pwd); Console.WriteLine(encrypt); string origial = decrpyt1(encrypt); Console.Write(origial); ProcessLauncher service = new ProcessLauncher(); if (args.Length > 0 && args[0] == "/i") { //Launched not as service. service.LaunchCommandLine(); } else { //Standard service entry point. ServiceBase.Run(service); } }