 |
Blitz2D Intermediates: Compressing Your Executables With UHX : Made Easy
by drastik
A simple trick I came up with to compress my blitz executables with upx from the right-click menu in Explorer.
1. Create the following file and save it in your upx directory:
UPX_WRAPPER.BAT
upx -9 -o %1_compressed %1
copy %1_compressed %1
del %1_compressed
/UPX_WRAPPER.BAT
2. Navigate to the directory containing your Send To shortcuts. Under XP this will be something like 'C:\Documents and Setting\User\SendTo'.
3. Create a new shortcut to the batch file you created, and name it something like 'Compress with UPX'.
4. Voila! Right click you an executable in Explorer and select Send To/Compress with UPX, and if everything goes as planned, you'll have a nicely compressed .exe.
Keep in mind that you can change the -9 option to a smaller number if you're not into maximum compression (or slowest speed).
Feel free to email me with any questions / comments.
For a printable copy of this article, please click HERE.
|