获得文件路径信息,C#源代码 string str;

时间:2012-01-15 03:27:01
【文件属性】:
文件名称:获得文件路径信息,C#源代码 string str;
文件大小:34KB
文件格式:RAR
更新时间:2012-01-15 03:27:01
获得文件路径信息,C#源代码 string str; 获得文件路径信息,C#源代码 string str; str = Path.GetExtension(Application.ExecutablePath) + "\n"; str = str + Path.GetFileNameWithoutExtension(Application.ExecutablePath) + "\n"; str = str + Path.GetPathRoot(Application.ExecutablePath) + "\n"; str = str + Application.ExecutablePath + "\n"; str = str + Path.GetDirectoryName(Application.ExecutablePath) + "\n"; MessageBox.Show(str);
【文件预览】:
getPass
----getPass.suo(13KB)
----getPass()
--------Form1.cs(943B)
--------bin()
--------obj()
--------Properties()
--------Program.cs(488B)
--------Form1.Designer.cs(2KB)
--------Form1.resx(6KB)
--------getPass.csproj(4KB)
----新建 文本文档.txt(534B)
----getPass.sln(911B)

网友评论

  • 内容很全,可以说把C#种的路径操作整理全了,值得推荐。