Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void RestartService()
- {
- System.Diagnostics.Process proc = new System.Diagnostics.Process();
- proc.StartInfo.FileName = $"{Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location)}\assets\renameAndRestart.bat";
- proc.StartInfo.Verb = "runas";
- proc.StartInfo.WorkingDirectory = Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location);
- proc.Start();
- }
Add Comment
Please, Sign In to add comment