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 system directory
Private Sub Command2_Click()
Dim sysstr As String * 256
GetSystemDirectory sysstr , 256
MsgBox Left(sysstr , InStr(sysstr , Chr(0)) - 1)
end
End Sub