How I can copy the folder from one location to another location ?
Printable View
How I can copy the folder from one location to another location ?
Copies the contents of folder to another folder
Creates another folder and copies the contents of folder to that new folderCode:Private Sub Command1_Click()
Dim fso, fldr
Set fso = CreateObject("Scripting.FileSystemObject")
Set fldr = fso.GetFolder("c:\my")
fldr.Copy ("c:\temp")
End Sub
And in the endCode:Private Sub Command1_Click()
Dim fso, fldr
Set fso = CreateObject("Scripting.FileSystemObject")
fso.CreateFolder ("c:\folder")
Set fldr = fso.GetFolder("c:\my")
fldr.Copy ("c:\folder")
End Sub
Code:set fso = Nothing
set fldr = Nothing