You must specify a file name

You attempted an operation, such as moving or copying a file, which requires supplying a file name.

To correct this error

  • Supply the necessary file name.

  • Make sure the path does not end with a directory separator character (\).

See Also

Tasks

How to: Parse File Paths in Visual Basic

Reference

My.Computer.FileSystem Object

Other Resources

File Access with Visual Basic