Arduino error code 39 in device manager

So recently my PC's hard drive failed, which had the Arduino IDE installed. Ever since I replaced the disk and began restoring what I could, I noticed that I couldn't flash any of my Arduinos. They all show in device manager, but all with an error:

Windows cannot load the device driver for this hardware. The driver may be corrupted or missing. (Code 39)

{Path Not Found}
The path %hs does not exist.

Google hasn't come up with anything that has worked - how can I get my Arduinos working again?

  • Click on the "Driver" tab.
  • Click "Update Driver".
  • Click "Browse my computer for driver software".
  • Select the drivers subfolder of the Arduino IDE installation folder.
  • Check "Include Subfolders".
  • Click "Next".

Hopefully that will reinstall the driver and fix the problem.

I've already tried that. I still get the same error regardless of what driver is installed.

samthesaminator:
I've already tried that. I still get the same error regardless of what driver is installed.

In device manager, right click on the Arduino that's giving you a problem (under ports) and uninstall the device.
Scan for hardware changes (in the action menu).
The device should reinstall automatically (If not you can now install it manually)