You just have to remember that the source and destination have to include the file name. Destination can't consist of a directory (in DOS you might [tt]COPY MYFILE.TXT C:\WINDOWS[/tt]. You can't do that in VB. You have to [tt]FileCopy "MyFile.txt", "c:\windows\MyFile.txt"[/tt])
Shame it doesn't support wildcards very well. There are APIs to do that job, though.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.