我是新手,我嘗試打開一個文件。 這裏是代碼:URI格式不支持異常
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格式不支持」 請幫助我:)
我的意思是什麼字符串的樣子,你可以登錄它(刪除任何敏感的)? – msanford
file:\ C:\ Users | dimitar.grudev \ documents \ Visual Studio 2015'Projects \ Helper \ Helper \ bin \ Debug \ filename.exe – spootles