Target folder is a file
You are specifying a file while attempting to perform a folder-related action.
To correct this error
- Check the path you are supplying to make sure you are specifying a folder rather than a file.
See Also
Tasks
How to: Parse File Paths in Visual Basic
How to: Determine the Absolute Path of a File in Visual Basic
Reference
Other Resources
Creating, Deleting, and Moving Files and Directories in Visual Basic