資源簡介
本實例打開的是 視覺定位系統.exe,當然大家測試時 將其可以改成本地的其它應用程序
代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.Diagnostics;
using?System.Linq;
using?System.Text;
using?System.Threading.Tasks;
namespace?打開文件程序
{
????class?Program
????{
????????static?void?Main(string[]?args)
????????{
????????????
????????????Console.WriteLine(“請輸入要打開的文件路徑名:“);
????????????string?path?=?Console.ReadLine();
????????????Process?pro?=?new?Process();
????????????pro.StartInfo.UseShellExecute?=?false;
????????????pro.StartInfo.FileName?=?path;
????????????pro.StartInfo.CreateNoWindow?=?true;
????????????pro.Start();
????????????Console.ReadKey();
????????}
????}
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????187??2018-10-08?21:09??進程使用\打開文件程序\App.config
?????文件???????5120??2018-10-08?21:20??進程使用\打開文件程序\bin\Debug\打開文件程序.exe
?????文件????????187??2018-10-08?21:09??進程使用\打開文件程序\bin\Debug\打開文件程序.exe.config
?????文件??????11776??2018-10-08?21:20??進程使用\打開文件程序\bin\Debug\打開文件程序.pdb
?????文件??????22984??2018-10-08?21:21??進程使用\打開文件程序\bin\Debug\打開文件程序.vshost.exe
?????文件????????187??2018-10-08?21:09??進程使用\打開文件程序\bin\Debug\打開文件程序.vshost.exe.config
?????文件????????490??2018-04-12?07:35??進程使用\打開文件程序\bin\Debug\打開文件程序.vshost.exe.manifest
?????文件???????6610??2018-10-08?21:09??進程使用\打開文件程序\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
?????文件??????????0??2018-10-08?21:09??進程使用\打開文件程序\obj\Debug\TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
?????文件??????????0??2018-10-08?21:09??進程使用\打開文件程序\obj\Debug\TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
?????文件??????????0??2018-10-08?21:09??進程使用\打開文件程序\obj\Debug\TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
?????文件????????462??2018-10-08?21:21??進程使用\打開文件程序\obj\Debug\打開文件程序.csproj.FileListAbsolute.txt
?????文件???????5120??2018-10-08?21:20??進程使用\打開文件程序\obj\Debug\打開文件程序.exe
?????文件??????11776??2018-10-08?21:20??進程使用\打開文件程序\obj\Debug\打開文件程序.pdb
?????文件????????681??2018-10-08?22:31??進程使用\打開文件程序\Program.cs
?????文件???????1356??2018-10-08?21:09??進程使用\打開文件程序\Properties\AssemblyInfo.cs
?????文件???????2577??2018-10-08?21:20??進程使用\打開文件程序\打開文件程序.csproj
?????文件????????187??2018-10-08?20:28??進程使用\進程使用\App.config
?????文件???????5632??2018-10-08?21:20??進程使用\進程使用\bin\Debug\進程使用.exe
?????文件????????187??2018-10-08?20:28??進程使用\進程使用\bin\Debug\進程使用.exe.config
?????文件??????13824??2018-10-08?21:20??進程使用\進程使用\bin\Debug\進程使用.pdb
?????文件??????22984??2018-10-08?21:20??進程使用\進程使用\bin\Debug\進程使用.vshost.exe
?????文件????????187??2018-10-08?20:28??進程使用\進程使用\bin\Debug\進程使用.vshost.exe.config
?????文件????????490??2018-04-12?07:35??進程使用\進程使用\bin\Debug\進程使用.vshost.exe.manifest
?????文件???????6592??2018-10-08?20:28??進程使用\進程使用\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
?????文件??????????0??2018-10-08?20:28??進程使用\進程使用\obj\Debug\TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
?????文件??????????0??2018-10-08?20:28??進程使用\進程使用\obj\Debug\TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
?????文件??????????0??2018-10-08?20:28??進程使用\進程使用\obj\Debug\TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
?????文件????????514??2018-10-08?21:20??進程使用\進程使用\obj\Debug\進程使用.csproj.FileListAbsolute.txt
?????文件???????1753??2018-10-08?20:34??進程使用\進程使用\obj\Debug\進程使用.csprojResolveAssemblyReference.cache
............此處省略25個文件信息
評論
共有 條評論