Delete a file with long path name

  1. Open command prompt
  2. Navigate to the folder containing the file with long name (>255 characters)
  3. subst z: . to create the drive-letter association to the path.
  4. You should now be able to delete, rename or make any other changes required to the file
  5. subst /d z: to remove the drive (Alternatively, just reboot the computer)

Leave a Reply