سلام دوست عزيز،
البته براي اين كار ميشه از API هم كمك گرفت .
اينطوري
Private Declare Function GetWindowsDirectory Lib "kernel32" Alias "GetWindowsDirectoryA" (ByVal lpBuffer As String, ByVal nSize As Long) As Long
Dim StrFolder As String * 255
Dim IntLength As Integer
IntLength = GetWindowsDirectory(StrFolder, 255)
MsgBox Left(StrFolder, IntLength)
هادي