Root folder cannot be renamed

An attempt has been made to rename the root directory. This may be a result of an improperly parsed file path.

To correct this error

  • Check the file path to make sure that it is correct.

See Also

Tasks

How to: Rename a Directory in Visual Basic

How to: Move a Directory in Visual Basic

Reference

My.Computer.FileSystem.RenameDirectory Method

My.Computer.FileSystem.RenameFile Method

Other Resources

Creating, Deleting, and Moving Files and Directories in Visual Basic