|
-
Oct 8th, 2000, 10:08 PM
#1
Thread Starter
Frenzied Member
Is there a function in vb to
tell you the windows directory?
And I need the default internet browser too..
-
Oct 8th, 2000, 10:15 PM
#2
Addicted Member
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|