File information cannot be queried if the file does not exist

An attempt has been made to query a FileInfo object for information about a file that does not exist. Usually this is due to a mistake made when supplying the file name.

To correct this error

  • Check that you are supplying the correct file name.

See Also

Tasks

How to: Get Information About a File in Visual Basic

How to: Parse File Paths in Visual Basic

Reference

My.Computer.FileSystem Object