資源簡介
涉及到內部信息的已經被刪除,因此直接運行是跑不起來的
主要是分享下思路,看Form1.cs的代碼應該就能明白,我保留了插件目錄結構以及配置文件
代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.ComponentModel;
using?System.Data;
using?System.Diagnostics;
using?System.Drawing;
using?System.IO;
using?System.Linq;
using?System.Text;
using?System.Windows.Forms;
using?Newtonsoft.Json;
using?Newtonsoft.Json.Linq;
using?Shared;
namespace?ChromeAutoInstall?{
????public?partial?class?Form1?:?Form?{
????????public?Form1()?{
????????????InitializeComponent();
????????}
????????private?void?button1_Click(object?sender?EventArgs?e)?{
????????????while(ProcessIsRunning(“chrome“))?{
????????????????MessageBox.Show(“請關閉谷歌瀏覽器關閉后再點確定按鈕“);
????????????}
????????????try?{
????????????????//相關參數的初始化
????????????????string?googleUserDataPath?=?Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData)
????????????????????.GetLocalRelativePath(“../Local/Google/Chrome/User?Data/Default/“);
????????????????string?preferencesFilePath?=?googleUserDataPath.GetLocalRelativePath(“Preferences“);
??????
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????6998??2014-06-03?20:56??ChromeAutoInstall\ChromeAutoInstall.csproj
?????文件???????1026??2014-06-03?20:53??ChromeAutoInstall\CRX\gbooljcnaomfgeokdihlblfjenaignfo\1.0.2_0\manifest.json
?????文件???????2909??2015-03-26?14:44??ChromeAutoInstall\CRX\gbooljcnaomfgeokdihlblfjenaignfo\PluginInstall.json
?????文件???????4878??2014-06-03?19:49??ChromeAutoInstall\Form1.cs
?????文件???????2242??2014-06-03?19:00??ChromeAutoInstall\Form1.Designer.cs
?????文件???????5817??2014-06-03?19:00??ChromeAutoInstall\Form1.resx
?????文件????????483??2014-06-03?17:58??ChromeAutoInstall\Program.cs
?????文件???????1376??2014-06-03?17:58??ChromeAutoInstall\Properties\AssemblyInfo.cs
?????文件???????2797??2014-06-03?17:58??ChromeAutoInstall\Properties\Resources.Designer.cs
?????文件???????5612??2014-06-03?17:58??ChromeAutoInstall\Properties\Resources.resx
?????文件???????1076??2014-06-03?17:58??ChromeAutoInstall\Properties\Settings.Designer.cs
?????文件????????249??2014-06-03?17:58??ChromeAutoInstall\Properties\Settings.settings
?????目錄??????????0??2015-03-26?14:44??ChromeAutoInstall\CRX\gbooljcnaomfgeokdihlblfjenaignfo\1.0.2_0
?????目錄??????????0??2015-03-26?14:38??ChromeAutoInstall\CRX\gbooljcnaomfgeokdihlblfjenaignfo
?????目錄??????????0??2015-03-26?14:38??ChromeAutoInstall\CRX
?????目錄??????????0??2015-03-26?14:38??ChromeAutoInstall\Properties
?????目錄??????????0??2015-03-26?14:38??ChromeAutoInstall
-----------?---------??----------?-----??----
????????????????35463????????????????????17
- 上一篇:ztree應用
- 下一篇:WPF 自定義標題的winform窗體實現源碼
評論
共有 條評論