Results 1 to 2 of 2

Thread: Getting directorys

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Sep 1999
    Location
    Phoenix, az
    Posts
    1,517
    Is there a function in vb to
    tell you the windows directory?

    And I need the default internet browser too..


  2. #2
    Addicted Member
    Join Date
    Jul 2000
    Location
    California
    Posts
    154
    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
  •  



Click Here to Expand Forum to Full Width