UPX - easy way to compress

Share your advanced PureBasic knowledge/code with the community.
syntax error
User
User
Posts: 93
Joined: Tue Jan 13, 2004 5:11 am
Location: Midlands , UK

UPX - easy way to compress

Post by syntax error »

Place UPX in the c:\ folder

Go into your SendTo folder ...

Win9X >>> c:\windows\sendto\ (I think)
WinXP >>> c:\documents and settings\USERNAME\SendTo

Create a shortcut in the SendTo folder

For the location of the item choose c:\UPX.exe
Click [Next]
For the shortcut name UPX Compress will do.
Click [Finish]

Right-Click on your shortcut and choose Properties
In the target field enter C:\upx.exe -9 "%1"
Click [OK]

Now, when you wish to compress a PB.exe (or any suitable *.exe) just right-click and select Sent To ->
You will see your UPX Compress option.
Choose that to compress the file.

NB: You might see an error message in the dos window but the compression still goes ahead.