Visual Basic 2008 中获取当前应用程序的路径

Application.StartupPath

说明:比如你的程序路径是c:\test\bin\debug\test.exe则他获取到得结果就是c:\test\bin\debug

Private connStr As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Application.StartupPath & "\LibraryManage.mdb"

你可能感兴趣的:(2008)