| Description:The easiest way to copy files from a disk or another directory.. just insert this anywhere you want to copy in files.. create a file list, declare variables for the source file and destination file, and the index for the files Declarations: Dim jack 'index Dim srcfile 'source file Dim destfile 'destination file Dim local_drive_designation 'can be anything, ie, "C:\temp\" File1.Path = "A:\" Do Until File1.List(jack) = "" 'the file list fills up with every file is on the disk.jack' is used to index each of the files. When there is no more files (a blank in the list) it exits srcfile = "A:\" & File1.List(jack) 'sets the source file to each file destfile = local_drive_designation & File1.List(jack) FileCopy srcfile, destfile Loop |
Copy Files From A |
Express News India | Freelance ecommerce web development India