| Start |
|---|
| Retrieve only the path from a file path The GetParentFolderName method returns the parent folder for any path. While this can also be used with folders, it is arguably more useful for extracting the path from an absolute file path: Prints Note that the trailing path separator is not included in the returned string. |
Retrieve just the extension from a file name Prints |
| Recursively enumerate folders and files Early Bound (with a reference to Output when called with arguments like: Output when called with arguments like: Output when called with arguments like: |
Strip file extension from a file name Prints Note that the |
Creating a FileSystemObject |
Reading a text file using a FileSystemObject |
Creating a text file with FileSystemObject |
| Enumerate files in a directory using FileSystemObject Early bound (requires a reference to Microsoft Scripting Runtime): Late bound: |
Writing to an existing file with FileSystemObject |
| Using FSO.BuildPath to build a Full Path from folder path and file name If you're accepting user input for folder paths, you might need to check for trailing backslashes ( Output: |
Read Article
https://develop.horje.com/learn/1434/reference