dim path as string
path=app.path

解决方案 »

  1.   

    在VB中,当然是用“App.path”了。
      

  2.   

    Private Declare Function GetFullPathName Lib "kernel32" Alias "GetFullPathNameA" (ByVal lpFileName As String, ByVal nBufferLength As Long, ByVal lpBuffer As String, ByVal lpFilePart As String) As Long
        
    Ret = GetFullPathName("Iexplore.exe", 255, Buffer, "")
      

  3.   

    Private Declare Function GetFullPathName Lib "kernel32" Alias "GetFullPathNameA" (ByVal lpFileName As String, ByVal nBufferLength As Long, ByVal lpBuffer As String, ByVal lpFilePart As String) As Long
        
    Ret = GetFullPathName("file", 255, Buffer, "")