Skip to content

Handles uploading of Microsoft file types to google drive for editting for those who do not have Office 365 licenses.

Notifications You must be signed in to change notification settings

KodyPrograms/Microsoft-To-Google-Drive

Repository files navigation

Microsoft To Google Drive

A C# console application that uploads Microsoft Excel and Word documents to Google Drive and opens them directly in Google Docs or Sheets. If a file with the same name already exists, it skips re-uploading and opens the existing file instead.

Features

  • Upload .xlsx, .csv, .doc, and .docx files to Google Drive
  • Converts files to Google Sheets or Google Docs format
  • Avoids duplicate uploads by checking existing file names
  • Automatically opens the uploaded or existing file in Google Chrome
  • Authenticates using Google OAuth2 with credentials.json
  • Cleans up stored token after each run

Prerequisites

  • .NET 6.0 or later
  • Google Drive API enabled on your Google Cloud project
  • OAuth 2.0 credentials (credentials.json) for a desktop app from the Google Cloud Console
  • Google Chrome installed on your system

Setup

  1. Create project on Google Cloud Console

    • Enable Google Drive API
    • Create OAuth 2.0 credentials for Desktop App
    • Download credentials.json
  2. Directory Structure

    • Place credentials.json in:
      C:\MoveToGoogle\Properties\credentials.json
  3. Build the Project

    • Clone this repo
    • Open the solution in Visual Studio or your preferred IDE
    • Restore NuGet packages:
      • Google.Apis.Auth
      • Google.Apis.Drive.v3
    • Build the project

Notes: Be sure to update the packages as they are over 2 years old now, they still work just fine but in best practice you should update these.

Usage

You can set the .exe to your default for opening .xlsx, .csv, .doc, and .docx` so it is automatic for end users on Windows devices. When they click the documents it will run that document directly into Google.

About

Handles uploading of Microsoft file types to google drive for editting for those who do not have Office 365 licenses.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages