Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21238

FileCoy Question

$
0
0
Hi,

I need to use Filecopy to copy a file from one folder to another. The problem is that the file name is always different. The file name format is like this,
12345.xxx.xxxx.out. The 'x's will be different each time. I used the code below but getting a 'Path not found' error. Can somebody help me? I'm new to VB. I really need some help.

FSO.CopyFile "c:\myfolder\12345*.out, "C:\TEMP\newfile.txt"

Thanks

Viewing all articles
Browse latest Browse all 21238

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>