| Const MAX_PATH = 255 Private Declare Function GetWindowsDirectory Lib "kernel32" _ Alias "GetWindowsDirectoryA" (ByVal lpBuffer As String, _ ByVal nSize As Long) As Long Public Function GetWindowsDir() As String Dim sRet As String, lngRet As Long sRet = String$(MAX_PATH, 0) lngRet = GetWindowsDirectory(sRet, MAX_PATH) GetWindowsDir = Left(sRet, lngRet) End Function |
Get the Windows Directory |
India web developer web development India | Freelance web development ecommerce web developer | Prayagasoft - web designer India, Ecommerce developer india, Ecommerce design