- Create backup directory.
Preferably in the %Home%\GDrive directory.
2. Run setup script
Set UserProfile=_@_.
CD %LocalAppData%\Google\Drive.
MD %UserProfile%.
MD "%USERPROFILE%\AppData\Roaming">nul.
MD "%USERPROFILE%\AppData\Local\Application Data">nul.
MD "%USERPROFILE%\Application Data">nul.
MD "%USERPROFILE%\Local Settings\Application Data">nul.
MD "%USERPROFILE%\My Documents">nul.
MD "%USERPROFILE%\Documents">nul.
- Create a bat file GDriveSync.bat.
with following content
@ECHO OFF.
Ping -n 10 localhost>nulSet USERNAME=_@_.
Set USERPROFILE=%~dp0%USERNAME%.
Set Path=C:\Program Files (x86)\Google\Drive.
Start googledrivesync.
4. Run
- Sign in.
- In advanced options - select the backup directory (from 1).
5. Create a startup entry for this bat file
- HKCU\Software \Microsoft\CurrentVersion\Run.
Updated:
2026 Aug 19

