How to copy all folders and files from one location to another location
Posted on January 4, 2009
1 2 3 4 5 6 7 8 9 10 | 'File/Folder Handling - How to copy all folders and files from one location to another location Option Explicit Sub Main() 'This will copy all folders in D:\Test\ to C:\Temp Dim oFSO As New Scripting.FileSystemObject Set oFSO = New FileSystemObject oFSO.CopyFolder "D:\Test\*", "C:\Temp\", False Set oFSO = Nothing End Sub |
Related posts:
- How to Copy the files to another directory (in three ways)
- How to Copy Folder from one directory to another directory (in Two ways)
- How to count number of files in a given directory (in two ways)
- How to List all the DLL files in the C:\WINDOWS\SYSTEM directory.
- How to scan folders for Files (in two ways)
- How to Rename files (in five ways)
- How to get the file name without its extension and path
- How to Rename folder (in three ways)
- Create Nested Directories (in two ways)
- How to Check whether two files are identical