This message can appear if the drive you’re trying to modify with DiskPart has a corrupted file system that’s preventing access. To solve “The system cannot find the file specified” error, you should first recover any data from it using a data recovery tool, then format it.