Is there a function in vb to
tell you the windows directory?
And I need the default internet browser too..
Printable View
Is there a function in vb to
tell you the windows directory?
And I need the default internet browser too..
Her's the code to get the windows Dir
Public Declare Function GetWindowsDirectory Lib "kernel32" _
Alias "GetWindowsDirectoryA" _
(ByVal lpBuffer As String, ByVal nSize As Long) As Long
Public Function getwindir(dir As Integer)
Dim windir As String * 255
Dim strln As Long
windir = Space(255)
strln = 254
Call GetWindowsDirectory(windir, strln)
trim$(windir)
dir = windir
End Function