Skip to content

codename5281/Export-GoogleShortcuts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

3 Commits
ย 
ย 
ย 
ย 

Repository files navigation

Google Drive Shortcuts Exporter

Batch convert local Google Drive shortcuts (.gdoc, .gsheet, .gslides) into real Office files (.docx, .xlsx, .pptx) directly within your folder structure.

โšก Key Features

  • In-Place Export: Saves converted files next to the original shortcuts.
  • Smart Naming: Adds suffixes (e.g., _from_gdocs) to prevent overwrites.
  • Recursive: Scans all subfolders automatically.
  • Robust: Uses API search to bypass Windows "Invalid Function" errors on virtual drives.

๐Ÿ› ๏ธ Prerequisites

You need a Client ID and Client Secret from the Google Cloud Console:

  1. Create a Project and enable the Google Drive API.
  2. Configure OAuth Consent Screen (User Type: External) and add your email as a Test User.
  3. Create Credentials (OAuth Client ID -> Application type: Desktop App).

๐Ÿš€ Usage

Run the script in PowerShell:

powershell.exe -ExecutionPolicy Bypass -File "Export-GoogleShortcuts.ps1" `
  -RootPath "G:\My Drive\Target Folder" `
  -ClientId "YOUR_CLIENT_ID" `
  -ClientSecret "YOUR_CLIENT_SECRET"

โš ๏ธ Known Limitation

Files larger than 10MB cannot be exported via the API. If a file is too large (e.g., heavy presentations), the script will skip it and alert you to download it manually via the browser.

๐Ÿ“„ License

MIT License. Use at your own risk.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors