Advertisement
Guest User

restart gdrive

a guest
Jan 3rd, 2019
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @echo off
  2. SETLOCAL EnableExtensions
  3. set EXE=googledrivesync.exe
  4. :FORLOOP
  5. FOR /F %%x IN ('tasklist /NH /FI "IMAGENAME eq %EXE%"') DO IF %%x == %EXE% goto FOUND
  6. echo Not running
  7. timeout /t 2
  8. START C:\"Program Files"\Google\Drive\googledrivesync.exe
  9. goto FIN
  10. :FOUND
  11. echo found GDrive running
  12. taskkill /F /IM "googledrivesync.exe"
  13. goto FORLOOP
  14. :FIN
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement