I am getting this error at this line:

My.Computer.FileSystem.RenameFile(objListViewItem.Text, InputBox("Please enter the new name of the file."))

Sometimes I get the error, sometimes it works. No open windows do seem to be using this file I'm using. Thanks in advance.