VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Copy files in directory Extremely simple

El Mariachi  (5 Submissions)   Files/File Controls/Input/Output   Visual Basic 3.0   Intermediate   Wed 3rd February 2021

With this code you can copy all files within a directory with a particular extension to another directory. Actually it will give you a progressive listing of a file with a wildcard and then you can do whatever you want with the file. Extremely simple and straightforward. I dont understand why the other codes are so huge. If you find an error or if you would like to comment please leave a messge.

Inputs
Create a button on your form and call it Command1. Then create a folder "c:\tempo" and cretae a bunch of files in it with , say, a .doc extension or whatever you want. Then create another folder "c:\tempx" and dont put anything in there.

Rate Copy files in directory Extremely simple (8(8 Vote))
Copy files in directory Extremely simple.bas

Copy files in directory Extremely simple Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters