Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- googledrivesync.exe /pause
- googledrivesync.exe /restart
- taskkill /fi "Service eq Google Sync"
- exit
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Diagnostics;
- namespace StartStopGDrive
- {
- class Program
- {
- static void Main(string[] args)
- {
- Process[] procs = Process.GetProcesses();
- foreach (Process proc in procs)
- {
- if (proc.ProcessName == "googledrivesync")
- proc.Kill();
- }
- Process.Start(@"C:ProgramDataMicrosoftWindowsStart MenuProgramsGoogle DriveGoogle Drive");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement