【发布时间】:2017-10-11 14:14:21
【问题描述】:
我是新手,我尝试打开一个文件。 这是代码:
string path = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase);
string filenamelocation = System.IO.Path.Combine(path, "Fix_DeltaPro.exe");
System.Windows.MessageBox.Show(""+filenamelocation+"");
using (FileStream stram = File.Open(filenamelocation, FileMode.Open)) ;
但有一点错误:“不支持 URI 格式。” 请帮帮我:)
【问题讨论】:
-
我的意思是字符串是什么样子的,你能把它记录下来(删除任何敏感的东西)吗?
-
file:\C:\Users|dimitar.grudev\documents\Visual Studio 2015' Projects\Helper\Helper\bin\Debug\filename.exe
标签: c#