Advertisement
Guest User

Untitled

a guest
Mar 24th, 2017
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. googledrivesync.exe /pause
  2.  
  3. googledrivesync.exe /restart
  4.  
  5. taskkill /fi "Service eq Google Sync"
  6. exit
  7.  
  8. using System;
  9. using System.Collections.Generic;
  10. using System.Linq;
  11. using System.Text;
  12. using System.Threading.Tasks;
  13. using System.Diagnostics;
  14.  
  15. namespace StartStopGDrive
  16. {
  17. class Program
  18. {
  19. static void Main(string[] args)
  20. {
  21. Process[] procs = Process.GetProcesses();
  22. foreach (Process proc in procs)
  23. {
  24. if (proc.ProcessName == "googledrivesync")
  25. proc.Kill();
  26. }
  27. Process.Start(@"C:ProgramDataMicrosoftWindowsStart MenuProgramsGoogle DriveGoogle Drive");
  28. }
  29. }
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement