久久久久久久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>
                          • 主站蜘蛛池模板: 日韩国产一区 | 国产高清一区二区三区 | 国产在线观看一区二区 | 久久精品亚洲成在人线av网址 | 日本不卡一区二区三区 | 免费精品一区 | 视频一区在线 | 一级免费毛片 | 乳色吐息在线观看 | 精品一区二区三区四区五区 | 国产精品久久国产精品99 | 91欧美精品成人综合在线观看 | 国产高清视频在线 | 精品国产乱码久久久久久丨区2区 | 国产视频1区 | 精品在线一区 | 日韩免费福利视频 | 日韩高清一区 | 99精品99 | 欧美日韩一区二区三区四区 | 亚洲中字在线 | 99精品久久久久久久 | 亚洲精品乱码久久久久久久久久 | 一级毛片视频在线 | 国产一区2区 | 精品久久香蕉国产线看观看亚洲 | h片在线免费看 | 日韩精品在线视频免费观看 | 欧美一级免费看 | 宅男噜噜噜66一区二区 | 午夜tv免费观看 | a免费在线 | 欧美一级欧美一级在线播放 | 成人精品国产 | 成人在线视 | 国产精品电影在线观看 | 日韩av免费在线观看 | 日韩一区二区三区在线 | 91小视频| 亚洲成人精品 | 日韩免费av一区二区 |