Copying files
-
With a Cmd Button, I want to copy files (always the same (*.DAT)from C:\ to A:\. But, the instruction 'CopyFiles "Source", "Destination" ' doesn't work. How must I do ? Thanks a lot !:confused: MARNEFFE Ph.
-
With a Cmd Button, I want to copy files (always the same (*.DAT)from C:\ to A:\. But, the instruction 'CopyFiles "Source", "Destination" ' doesn't work. How must I do ? Thanks a lot !:confused: MARNEFFE Ph.
*.Dat is not a valid entry for copyfile... You must add a fileview control to your form. change its pattern to *.dat. Set it invisible. When you project runs set its path to "C:\" and use this code: for i = 0 to file1.count-1 copyfile "c:\" & file1.list(i), "a:\" & file1.list(1) next have good programing, Cem
-
With a Cmd Button, I want to copy files (always the same (*.DAT)from C:\ to A:\. But, the instruction 'CopyFiles "Source", "Destination" ' doesn't work. How must I do ? Thanks a lot !:confused: MARNEFFE Ph.
check out this article from ms. You can use any wildcard with this procedure. http://support.microsoft.com/support/kb/articles/Q151/7/99.asp