CyberSolutions: Force Windows To Rename A File/Folder Which Has A Special Character

Saturday, November 28, 2015

Force Windows To Rename A File/Folder Which Has A Special Character


Notice the dot at the end of the folder names, this is an invalid character.
When this happens you can’t delete the folder because windows will complain with the following message:  "This is no longer located in … Verify the item’s location and try again".
To Fix This:
dir /X *parent directory name*

You need to use the MVC4~1 SPECS~1 WCFSERV~1 handles to rename each of the folders or files.
rename MVC4~1 "mvc4"
(Notice the dot is gone)

You can now delete this folder.

No comments :

Post a Comment