g7lno Posted October 1, 2009 Share Posted October 1, 2009 I'm trying to set a sequence from a button to transfer log files from one location to another. I have coded; file.CopyFile("C:\daqfactory\logs\*.csv","D:\*.csv",0) I keep getting C1122 error, can i not use wildcards in this function. Or is there an easier way to transfer files on demand? Graham Link to comment Share on other sites More sharing options...
AzeoTech Posted October 2, 2009 Share Posted October 2, 2009 No, you can't use wildcards. You'll have to use the File.GetFilePathList() function to get a list of all the files you want, then loop through and copy them individually. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.