Asked 8 years, 10 months ago. Active 2 years, 3 months ago. Viewed 46k times. But I got the error: 'Target is a folder, not a file'. Improve this question. Peter Mortensen Surely I know what the error message means. I just want to copy the source. The folder may be empty may contains the same named file. How can this not be a duplicate more than four years after the birth of Stack Overflow?
Add a comment. Active Oldest Votes. Copy sSource, Path. Combine sFolder, Path. Improve this answer. Combine FullPath, foundFile.
Jul 24th, , PM 2. Re: Copy Files using wildcards Set the filter. Last edited by mbutler; Jul 24th, at PM. Jul 24th, , PM 3. Re: Copy Files using wildcards Can you help me on my code, its still not working. Combine Fullpath, foundFile.
Jul 24th, , PM 4. Re: Copy Files using wildcards This is one of those cases where you don't actually know what your code is doing because you haven't actually checked. Look at your code: Code:. StartupPath, foundFile. Why is my data not saved to my database?
Jul 25th, , AM 5. Re: Copy Files using wildcards the fact is that my code wont even get to that part, the full section of code to do with it vb Code:. If TextBox8. Catch ex As Exception. End Try. End If. Jul 25th, , AM 6. Re: Copy Files using wildcards Ok i found out that it is finding the files and it is the correct path to be copied, so now cna you help me please. MsgBox IO. Jul 25th, , AM 7. Return Path.
What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange. All rights reserved. Covered by US Patent. Come for the solution, stay for everything else. Welcome to our community! The VB.
Net File Copy and Move commands are easy to use if you want to rename the files. Net FileSystemObject. Most Points Rookie The Distinguished Expert awards are presented to the top veteran and rookie experts to earn the most points in the top 50 topics. Join our community to see this answer!
0コメント