First post, by many408
I have about 6000 zipfiles, all with unique names but they all have the same filename (different file) inside.
I need to unzip them all and assign the unique zipfilename to the extracted file(s).
So I wrote a small quickbasic program which
shells to "dir *.zip > dir.txt"
then it runs through the dir.txt file and
a) extracts each zipfile's content (via shell to "unzip <filename>")
b) renames the extracted file via quickbasic's NAME command
This works, for about 15 minutes, then everything freezes. It starts going through the dir.txt file, reading and unzipping just fine, then somewhere between 100 and 200 (roughly) of the zipfiles processed, it hangs. It does not stop at the same file.
The computer is a Dell 630 running Ubuntu 12.04 and Windows 7; each with Dosbox 0.74. I have tried running the program in quickbasic interpreted mode and as a compiled (standalone .exe) in Ubuntu, and as a standalone .exe in win7.
When the Ubuntu freeze happens, everything slows down, and after a bit nothing works, no mouse, no Ctrl-Alt-T for terminal, I hit the power button to fix it.
When the Windows freeze happens, windows says the runtime has asked to be terminated in an unusual way. It does close the window and continue working, though.
I'm not comitted to using quickbasic, so if there was an unzip binary that would allow sequential renaming of the extracted file, or some way of doing this via batch files that's ok.