久久久久久久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 文件夾?的處理方法,對大家解決問題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                  問題描述

                  與這里.僅用于 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#?

                  • 注冊表?
                  • 環(huán)境變量?
                  • 等等……

                  推薦答案

                  我個(gè)人認(rèn)為,最好的辦法是通過SQLite3訪問同一個(gè)文件.

                  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 的引用并將其包含在您的項(xiàng)目中以運(yùn)行上述代碼.

                  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

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

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

                  相關(guān)文檔推薦

                  Ignore whitespace while reading XML(讀取 XML 時(shí)忽略空格)
                  XML to LINQ with Checking Null Elements(帶有檢查空元素的 XML 到 LINQ)
                  Reading XML with unclosed tags in C#(在 C# 中讀取帶有未閉合標(biāo)簽的 XML)
                  Parsing tables, cells with Html agility in C#(在 C# 中使用 Html 敏捷性解析表格、單元格)
                  delete element from xml using LINQ(使用 LINQ 從 xml 中刪除元素)
                  Parse malformed XML(解析格式錯(cuò)誤的 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>
                          • 主站蜘蛛池模板: 欧美日韩综合视频 | 久久精品色欧美aⅴ一区二区 | 91欧美激情一区二区三区成人 | 国产区精品 | 久久蜜桃资源一区二区老牛 | 日韩欧美二区 | 久久综合久色欧美综合狠狠 | 男女午夜免费视频 | 在线观看免费高清av | 成人影院免费视频 | 影音先锋中文在线 | 亚洲精品久久久9婷婷中文字幕 | 91久久久久久久久久久久久 | 国产中文| 日韩欧美国产精品一区二区三区 | 综合久久一区 | 国产高清视频一区 | 亚洲精品福利在线 | 国产免费色 | 一区二区三区亚洲精品国 | 国产精品一区二区久久 | 一级做a爰片性色毛片16 | 欧美视频在线播放 | 久久久www | 毛片.com | 国产精品久久久久久久久久软件 | 国产精品久久精品 | 亚洲日韩欧美一区二区在线 | 精品国产一区二区三区av片 | 日韩三级在线 | 久草在线中文888 | 色网站在线 | 精品久久精品 | 久久久精品网 | 日韩欧美国产一区二区 | 日韩精品在线视频免费观看 | 国产精品国产精品国产专区不卡 | 日韩国产一区二区三区 | 91av在线免费看 | 日韩在线免费视频 | 国产精品一区二区三区在线 |