Hi All, I have a number of files in a give folder A. I want to move these files to folder B one by one. i.e., I am doing processing to every file. so after my own processing completes, I want to move the processed file to a different folder. How can I do that? Please help!
You probably want the FileSystemObject:
http://articles.techrepublic.com.com/5100-10878_11-1050078.html
Also, obviously you should upgrade and avoid any new vb6 development if possible. If you are .NET enabled however, you can do it much more easily in a .NET library and then expose the .NET component to COM for reference by your VB6 app. The only new requirement would really be that the app requires the .NEt Framework (which is standard now for windows installations). Another benefit of this is that if you later decide to upgrade the app to .NET you already have this functionality done!
The pure VB6 approach, without using FileSystemObject, is to copy then delete.
FileCopy src, dest
Kill src
Links to manual:
http://msdn.microsoft.com/en-us/library/aa243368(VS.60).aspx
http://msdn.microsoft.com/en-us/library/aa243388(VS.60).aspx
@MarkJ You could almost say that that's a pure QBASIC approach even. :)