Method: GetFolder for FileSystemObject
- Updated2024-09-12
- 1 minute(s) read
FileSystemObject and Dictionary > Methods > Method: GetFolder for FileSystemObject
Method: GetFolder for FileSystemObject
Returns a folder object belonging to a path.
Set oFolder = Object.GetFolder(FolderPath)
| Object | FileSystemObject Object with this method |
| FolderPath | String Specifies the path of the folder. |
| oFolder | Folder Returned object |
The following example returns a folder object:
Function GetFolderObject(sFolder) Dim fso Set fso = CreateObject("Scripting.FileSystemObject") Set GetFolderObject = fso.GetFolder(sFolder) End Function