久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

    <i id='QAyvz'><tr id='QAyvz'><dt id='QAyvz'><q id='QAyvz'><span id='QAyvz'><b id='QAyvz'><form id='QAyvz'><ins id='QAyvz'></ins><ul id='QAyvz'></ul><sub id='QAyvz'></sub></form><legend id='QAyvz'></legend><bdo id='QAyvz'><pre id='QAyvz'><center id='QAyvz'></center></pre></bdo></b><th id='QAyvz'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='QAyvz'><tfoot id='QAyvz'></tfoot><dl id='QAyvz'><fieldset id='QAyvz'></fieldset></dl></div>
      <bdo id='QAyvz'></bdo><ul id='QAyvz'></ul>

    <small id='QAyvz'></small><noframes id='QAyvz'>

    <legend id='QAyvz'><style id='QAyvz'><dir id='QAyvz'><q id='QAyvz'></q></dir></style></legend>
    1. <tfoot id='QAyvz'></tfoot>

      1. 如何使用 C# 以編程方式定位我的 Google Drive 文件

        How do I programmatically locate my Google Drive folder using C#?(如何使用 C# 以編程方式定位我的 Google Drive 文件夾?)
        • <tfoot id='Brckw'></tfoot>
        • <small id='Brckw'></small><noframes id='Brckw'>

        • <legend id='Brckw'><style id='Brckw'><dir id='Brckw'><q id='Brckw'></q></dir></style></legend>
              <tbody id='Brckw'></tbody>

                <i id='Brckw'><tr id='Brckw'><dt id='Brckw'><q id='Brckw'><span id='Brckw'><b id='Brckw'><form id='Brckw'><ins id='Brckw'></ins><ul id='Brckw'></ul><sub id='Brckw'></sub></form><legend id='Brckw'></legend><bdo id='Brckw'><pre id='Brckw'><center id='Brckw'></center></pre></bdo></b><th id='Brckw'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='Brckw'><tfoot id='Brckw'></tfoot><dl id='Brckw'><fieldset id='Brckw'></fieldset></dl></div>
                  <bdo id='Brckw'></bdo><ul id='Brckw'></ul>
                  本文介紹了如何使用 C# 以編程方式定位我的 Google Drive 文件夾?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  與這里.僅用于 Google Drive 而不是 Dropbox:

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

                  如何使用 C# 以編程方式定位我的 Google Drive 文件夾?

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

                  • 注冊表?
                  • 環境變量?
                  • 等等……

                  推薦答案

                  我個人認為,最好的辦法是通過SQLite3訪問同一個文件.

                  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();
                  

                  您可以從 獲取 .Net 的 SQLite 庫這里.還要添加對 System.Data.SQLite 的引用并將其包含在您的項目中以運行上述代碼.

                  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.

                  要檢索用戶,請從上述代碼中替換 entry_key='user_email'

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

                  這篇關于如何使用 C# 以編程方式定位我的 Google Drive 文件夾?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  Ignore whitespace while reading XML(讀取 XML 時忽略空格)
                  XML to LINQ with Checking Null Elements(帶有檢查空元素的 XML 到 LINQ)
                  Reading XML with unclosed tags in C#(在 C# 中讀取帶有未閉合標簽的 XML)
                  Parsing tables, cells with Html agility in C#(在 C# 中使用 Html 敏捷性解析表格、單元格)
                  delete element from xml using LINQ(使用 LINQ 從 xml 中刪除元素)
                  Parse malformed XML(解析格式錯誤的 XML)
                • <i id='20nZW'><tr id='20nZW'><dt id='20nZW'><q id='20nZW'><span id='20nZW'><b id='20nZW'><form id='20nZW'><ins id='20nZW'></ins><ul id='20nZW'></ul><sub id='20nZW'></sub></form><legend id='20nZW'></legend><bdo id='20nZW'><pre id='20nZW'><center id='20nZW'></center></pre></bdo></b><th id='20nZW'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='20nZW'><tfoot id='20nZW'></tfoot><dl id='20nZW'><fieldset id='20nZW'></fieldset></dl></div>

                        <tbody id='20nZW'></tbody>

                      <legend id='20nZW'><style id='20nZW'><dir id='20nZW'><q id='20nZW'></q></dir></style></legend>
                        <bdo id='20nZW'></bdo><ul id='20nZW'></ul>

                          <small id='20nZW'></small><noframes id='20nZW'>

                          <tfoot id='20nZW'></tfoot>
                          • 主站蜘蛛池模板: 欧美区一区二 | 亚洲 欧美 综合 | 久久中文网 | 天天操天天操天天操 | 乳色吐息在线观看 | 91黄色大片| 欧美在线观看一区二区 | 国产高清在线观看 | 免费一级大片 | 亚洲综人网 | 亚洲香蕉视频 | 午夜a级片 | 国产精品av一区二区 | 天天干女人 | 五月天激情婷婷 | 一区二区三区成人 | 国产一区二区福利 | 特级做a爱片免费69 伊人超碰在线 | 成人午夜网 | av一区二区在线观看 | 国产极品在线观看 | 亚洲精品网址 | 免费爱爱网站 | 国产成人黄色 | 深夜福利网 | 亚洲欧美综合另类 | 中文字幕免费观看视频 | 久久都是精品 | 中文字幕国产一区 | 亚洲www啪成人一区二区麻豆 | 午夜激情网 | 免费视频a | 欧美成人午夜 | 日韩在线免费视频 | 亚洲视频在线看 | 五月婷婷深深爱 | 日本中文字幕一区 | 九九综合网 | 亚洲欧美日韩另类 | 毛片网站大全 | www.毛片.com|