I want to use the windows API to copy mutliples files from folder A to folder B. My code is as follows:
DECLARE INTEGER CopyFile IN kernel32;
STRING lpExistingFileName,;
STRING lpNewFileName,;
INTEGER bFailIfExists
lnResult = CopyFile ("w:\folder1\*.*","w:\folder2\",0)
This does not work. It only works if I give a filename as follows:
lnResult = CopyFile ("w:\folder1\file.txt","w:\folder2\file.txt",0)
How can I copy multiple files. I dont want to use the COPY FILE from VFP as it changes the file mames from Upper to Lower case after the copy is done. The file names need to stay in the CASE they work created it.
I would appreciate some help. Thanks in advance!!
Stuart Reid
True nobility lies not in being superior to another man, but in being superior to one’s previous self