I wish to copy all files in a specified drive; I used the below coding, but I need all the files and folders in the drive to be copied at a specified location. Please help
Option Explicit Dim FSO As New FileSystemObject '--------------------------- Public Sub Main() On Error Resume Next Dim ptold, ptnew As String Dim n, i As Integer ptold = "G:\Acrobat" ptnew = "C:\Documents and Settings\Faizan\Desktop\New" Call FSO.CopyFile(ptold, ptnew) Call FSO.CopyFolder(ptold, ptnew, True) End Sub

New Topic/Question
Reply





MultiQuote





|