This operation can only be done when the File is closed

When a file is open, an attempt has been made to perform an operation that can only be performed when the file is closed.

To correct this error

  • Close the file and attempt the operation again.

See Also

Tasks

How to: Get Information About a File in Visual Basic

Reference

FileIOPermission

FileClose