Happy Codings - Programming Code Examples
Html Css Web Design Sample Codes CPlusPlus Programming Sample Codes JavaScript Programming Sample Codes C Programming Sample Codes CSharp Programming Sample Codes Java Programming Sample Codes Php Programming Sample Codes Visual Basic Programming Sample Codes


Visual Basic Programming Code Examples

Visual Basic > Code Snippets Code Examples

Returns the System folder

1 2 3 4 5 6 7 8 9 10 11 12
Returns the System folder Returns the System folder . You will need to add a reference to the Microsoft Scripting runtime for this to work. Private Sub Form_Load() Dim objFso As FileSystemObject Dim WindowsPath As String Set objFso = New FileSystemObject WindowsPath = objFso.GetSpecialFolder(SystemFolder) MsgBox (WindowsPath) End Sub