Guest User

Untitled

a guest
Nov 20th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. private void RestartService()
  2. {
  3. System.Diagnostics.Process proc = new System.Diagnostics.Process();
  4. proc.StartInfo.FileName = $"{Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location)}\assets\renameAndRestart.bat";
  5. proc.StartInfo.Verb = "runas";
  6. proc.StartInfo.WorkingDirectory = Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location);
  7. proc.Start();
  8. }
Add Comment
Please, Sign In to add comment