Delen via


Source folder and target folder are the same

An attempt has been made to copy or move a file, but the specified source directory and target directory are the same. This may be a result of incorrectly parsing a file path.

To correct this error

  • Make sure you supplied the correct source and target directories.

See Also

Tasks

How to: Parse File Paths in Visual Basic

How to: Move a File in Visual Basic

How to: Copy Files with a Specific Pattern to a Directory in Visual Basic

Reference

My.Computer.FileSystem.MoveFile Method

My.Computer.FileSystem.CopyFile Method