Monday, March 6, 2023

A fix for a specific problem with Internet Download Manager

We all know what Internet Download Manager is, right? I use it; love it. Worth every penny.

Here's a problem I just ran into: I was downloading a large batch and I decided to stop downloading, so I X'd out the program and removed the USB hard drive it was downloading to. Well, turns out clicking the X in the upper right didn't close it at all; it was still active in my tray, downloading away. And it downloaded several hundred files to 100%, but it wouldn't complete because the program expected to join/rename the temp files to the hard drive that I just removed. And restarting the download in IDM did just that: restart the download, from zero!

I obviously didn't want to do that. After trying a bunch of things like changing the save to folder and temp folder (Google was useless here!), I just double-clicked the .log file (should open in Notepad) and it'll tell you the real name the completed temp zip would've renamed itself to.

From then on, it's just using a looping AutoHotkey script to rename and move.

---

EDIT: Since AutoHotkey sometimes doesn't actually copy text, my auto-renaming looping script didn't work sometimes. No matter... I just moved folders 100 at a time to a new folder and searched for .zip. Here, I do my first check: looking for zips with the exact same name. If I open the zip, I'll be able to see if the contents inside match. After that, I copy, and if there are still same-name conflicts, I'll of course cancel the copying and check the contents of the zips again.