Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8827091
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T07:17:54+00:00 2026-06-14T07:17:54+00:00

Similar question as here . Just for Google Drive instead of Dropbox : How

  • 0

Similar question as here. Just for Google Drive instead of Dropbox:

How do I programmatically locate my Google Drive folder using C#?

  • Registry?
  • Environment Variable?
  • Etc…
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T07:17:55+00:00Added an answer on June 14, 2026 at 7:17 am

    I personally think, the best way is to access the same file through SQLite3.

    string dbFilePath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "Google\\Drive\\sync_config.db");
    if (!File.Exists(dbFilePath))
        dbFilePath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "Google\\Drive\\user_default\\sync_config.db");
    
    string csGdrive = @"Data Source="+ dbFilePath + ";Version=3;New=False;Compress=True;";                
    SQLiteConnection con = new SQLiteConnection(csGdrive);
    con.Open();
    SQLiteCommand sqLitecmd = new SQLiteCommand(con);
    
    //To retrieve the folder use the following command text
    sqLitecmd.CommandText = "select * from data where entry_key='local_sync_root_path'";
    
    SQLiteDataReader reader = sqLitecmd.ExecuteReader();
    reader.Read();
    //String retrieved is in the format "\\?\<path>" that's why I have used Substring function to extract the path alone.
    Console.WriteLine("Google Drive Folder: " + reader["data_value"].ToString().Substring(4));
    con.Dispose();
    

    You can get the SQLite library for .Net from here.
    Also add reference to System.Data.SQLite and include it in your project to run the above code.

    To retrieve the user, relpace entry_key='user_email' from the above code

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Just that. I found a similar question here : c# console, Console.Clear problem but
I have seen similar questions here but I just can't understand them. I am
There is a similar question here on SO, but I have a fairly small
I asked a very similar question here but since it is such a fundamental
I've posted similar question here , but it was closed because I didn't explained
I've found a similar question here , but I'm looking for more general solutions.
I ask a similar question here and Darin Dimitrov answer that we can't use
I found this similar question here , but this is really old. Was it
I know there is a very similar question here but I was hoping to
I am aware that there is a similar question here with no solution. I'm

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.