![]() ![]() ![]() ![]() ![]() ![]() |
||
![]() |
Auto-Unzip to Desktop ProgramThis is a super simple C program to auto-unzip .zip files to your desktop thus saving you the effort of clicking through 4 or 5 dialog boxes to get to the uncompressed files. You will need to have the decompression utility 7-ZIP already installed. Download from http://www.7-zip.org/download.html or SourceForge. The Code:Here is my C code for calling up the command line version of 7-ZIP and passing an argument. The main difficulty of this method is that you may get passed a path containing spaces. Thus you must loop through all the arguments and then place them in quotes before passing on to 7-ZIP. After you compile, go to the browser and change your .zip preferences to open with our new helper program. If all goes well, the next time you try to open a zip file on the web, it to be automatically extracted to your desktop. Other Notes: You may wish to add a new system command in the program to create a folder on the desktop to hold the extracted files.
|
![]() |
|
Copyright (c) 2009 Steven Nichols | Valid HTML | Valid CSS |
||