vb.net 2008 获取当前路径

来源:百度知道 编辑:UC知道 时间:2024/06/22 00:34:19
在vb2008中怎样获取当前程序路径。

Application.StartupPath 就是当前软件的文件夹路经(不包含文件名) 是较为常用的

My.Computer.FileSystem.CurrentDirectory 返回的是当前运行程序的目录
String 格式

Application.ExecutablePath
Application.StartupPath()
Server.MapPath