M HYPE SPLASH
// news

Approach to restarting Google Drive periodically under Windows

By Emma Payne

I run GoogleDrive on an unatteded Windows 7 machine. Periodically I have to restart Google Drive as GD gets itself into a state where it stops syncing. Restarted GD fixes the issue.

Has anyone got a BAT file or similair approach that I can schedule to do the restart of GD so I don't have to do it manually?

5

2 Answers

If you want it to automatically run periodically, just use Task Scheduler (search for it in the Start Menu) to run a batch script.

The batch script should contain:

taskkill /f /im googledrivesync.exe
ping 1.1.1.1 -n 1 -w 2000 > nul
start "" "C:\Program Files (x86)\Google\Drive\googledrivesync.exe"
exit

The ping command is there just to add a delay between killing and restarting googledrivesync.exe

Task CMD : C:\Windows\SysWOW64\wscript.exe EXEC_HIDEN_CMD_GOOGLE_SYNC.vbs

Text for file named EXEC_HIDEN_CMD_GOOGLE_SYNC.vbs :

CreateObject("Wscript.Shell").Run ".\RestartGoogleSync.bat",0,True

Text for file named RestartGoogleSync.bat :

taskkill /f /im googledrivesync.exe

timeout 5 >> nul

start "" "C:\Program Files\Google\Drive\googledrivesync.exe"

exit

Put All in C:\Windows\SysWOW64 folder.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy