Solving IDL PKUNZIP and PKZIP Issues on Win 7

  • Thread starter Thread starter swartzism
  • Start date Start date
Click For Summary
SUMMARY

This discussion addresses the compatibility issues of PKUNZIP and PKZIP executables on a 64-bit Windows 7 operating system when used within IDL code. The original user faced challenges running legacy code that relied on these tools for file extraction and compression. The solution involved downloading alternative zip and unzip utilities through Cygwin, successfully replacing the original executables while ensuring that the necessary Cygwin DLL was present in the directory. This approach effectively resolved the compatibility issues.

PREREQUISITES
  • Understanding of IDL (Interactive Data Language) programming
  • Familiarity with command-line operations in Windows
  • Basic knowledge of file compression and extraction tools
  • Experience with Cygwin and its environment
NEXT STEPS
  • Research Cygwin installation and configuration for Windows
  • Explore alternative command-line zip utilities such as 7-Zip or Info-ZIP
  • Learn about integrating external executables within IDL scripts
  • Investigate compatibility issues between 32-bit and 64-bit applications
USEFUL FOR

IDL programmers, software developers transitioning legacy code to 64-bit systems, and anyone troubleshooting file compression issues in a Windows environment.

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)
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
2K
Replies
3
Views
3K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 37 ·
2
Replies
37
Views
7K
  • · Replies 14 ·
Replies
14
Views
5K
  • · Replies 17 ·
Replies
17
Views
4K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 17 ·
Replies
17
Views
5K
Replies
12
Views
9K
  • · Replies 1 ·
Replies
1
Views
2K