by Syed Danish Afzal Rizvi (13 Submissions)
Category: Windows API Call/Explanation
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Tue 20th August 2002
Date Added: Mon 8th February 2021
Rating: (1 Votes)
if you want to get the windows directory
Dim a As String * 256
GetWindowsDirectory a, 256
b = Left(a, InStr(a, Chr(0)) - 1)
MsgBox b
End Sub