Solving IDL PKUNZIP and PKZIP Issues on Win 7

  • Thread starter Thread starter swartzism
  • Start date Start date
AI Thread Summary
The discussion revolves around the challenges of adapting old IDL code that utilizes PKUNZIP and PKZIP for a 64-bit Windows 7 environment. The original executables are incompatible, prompting the search for alternatives that can operate without a GUI. The user initially attempted to use WinRAR and WinZip but encountered issues due to their graphical interfaces. Ultimately, a solution was found by downloading zip and unzip utilities via Cygwin, creating a tar of their folders, and replacing the original executables with shortcuts to the new ones. This approach works effectively as long as the Cygwin DLL is included in the same directory.
swartzism
Messages
103
Reaction score
0
Heads up: I am working in IDL (which I have never done before)

I am trying to get old code which works on a 32-bit machine to work on 64-bit and am having trouble with PKUNZIP and PKZIP which aren't compatible with a 64-bit OS (Windows 7). I have 2 executable files, PKUNZIP and PKZIP, which are used in the IDL code as

Code:
cd, skypath, current=thisone
spawn,'del skyfiles.*'
spawn,'del unpack.zip'
spawn, 'rename '+zipfile+' unpack.zip'
spawn, 'pkunzip -o unpack.zip'

...

spawn,'pkzip skyfile.zip skyfiles.rad skyfiles.trn skyfiles.dep skyfiles.uwr'
spawn,'rename skyfile.zip '+'SKY'+zipfile

Since PKUNZIP and PKZIP don't work, does anyone know of any alternatives that can? I've tried WinRAR and WinZip, but I couldn't get them to work. I believe that they wouldn't work due to the fact that they open a GUI which asks where to unzip rather than simply unzipping to a folder named in the IDL code. Does anyone have any experience in messing with stuff like this?

Thanks in advance.
 
Technology news on Phys.org
Fixed it. Downloaded zip and unzip with Cygwin, tar'd their folders and included a shortcut to the executable files in place of PKUNZIP and PKZIP. Works fine (if cygwin1.dll is included in the same directory as the original executable)
 
Thread 'Is this public key encryption?'
I've tried to intuit public key encryption but never quite managed. But this seems to wrap it up in a bow. This seems to be a very elegant way of transmitting a message publicly that only the sender and receiver can decipher. Is this how PKE works? No, it cant be. In the above case, the requester knows the target's "secret" key - because they have his ID, and therefore knows his birthdate.

Similar threads

Back
Top