winform中相对路径和绝对路径的获取
摘要:
例如:Path.GetFullPath(Path.Combin(@"C:\a\b\c","..\b.text"));..代表上级目录.代表当前目录结果:c:\a\b\b.text在winform中项目所在目录:D:\MyWork\MyProjectstring strpath=System.Windows.Forms.Application.StartupPath;结果:strpath: D:\MyWork\MyProject\bin\Debugstring _path=Path.GetFullPath(Path.Combin(strpath," 阅读全文
posted @ 2013-07-03 17:02 MisterS 阅读(1114) 评论(0) 推荐(0) 编辑