You are here

What Is The Correct Syntax?

6 posts / 0 new
Last post
ZachHudock
ZachHudock's picture
Offline
Last seen: 1 year 4 months ago
Developer
Joined: 2006-12-06 18:07
What Is The Correct Syntax?

I know these have been asked before, but after searching for an hour or so, I was unable to find a complete answer.

Question 1. What is the full, proper, and space optimized syntax for 7-zip command line to recompress all jar files in a directory?
-still lost
-can't implement it yet

Question 2. What is the full, proper, and space optimized syntax for UPX?
-Answered, thanks Ryan
-currently being implemented

I'm asking these because I'm currently using my free time to write an AutoHotKey program, with GUI, that will allow the user to UPX all supported files in a given directory and subdirectories, as well as recompress all jar files in that directory and it's subdirectories.

Ryan McCue
Ryan McCue's picture
Offline
Last seen: 14 years 7 months ago
Joined: 2006-01-06 21:27
.

For question 2, see the support page for almost any app.
e.g. AbiWord Support » Modifications
The options used were: --best --compress-icons=0 --nrv2d --crp-ms=999999 -k
----
Ryan McCue.
Blog.
So all that Airbus-delay trouble over here in Europe is because of YOU!
Simeon.

"If you're not part of the solution, you're part of the precipitate."

ZachHudock
ZachHudock's picture
Offline
Last seen: 1 year 4 months ago
Developer
Joined: 2006-12-06 18:07
thanks. I thought I had

thanks. I thought I had seen it somewhere, but then when I looked back, i just saw "compressed with UPX using optimized settings" or something like that

The developer formerly known as ZGitRDun8705

ZachHudock
ZachHudock's picture
Offline
Last seen: 1 year 4 months ago
Developer
Joined: 2006-12-06 18:07
The UPX part is nearly

The UPX part is nearly finished, I have a question though. What is "--nrv2d --crp-ms=999999" I couldnt find these commands when I ran upx.exe --help. Were they commands in the older version that have now been replaced with something else, or did I just miss something?

I'd very much appreciate a response for the 7-zip commands as well. I found a post where John provided some syntax, but I can't get it to work properly, any help would be great. Thanks in advance.

The developer formerly known as ZGitRDun8705

BuddhaChu
BuddhaChu's picture
Offline
Last seen: 7 years 6 months ago
Joined: 2006-11-18 10:26
The correct way to get

The correct way to get extended help is "upx.exe -h", not "upx.exe --help".

If you read the docs on the UPX site they explain the compression engine options.

See v1.21 in the changelog too. http://upx.sourceforge.net/upx-news.txt

I'm advocating LZMA compression in the latest version of UPX so replace "--nrv2d" with "--lzma" for a tigher "squeeze" if you'd like.

Cancer Survivors -- Remember the fight, celebrate the victory!
Help control the rugrat population -- have yourself spayed or neutered!

ZachHudock
ZachHudock's picture
Offline
Last seen: 1 year 4 months ago
Developer
Joined: 2006-12-06 18:07
Thanks, "upx --help" was the

Thanks, "upx --help" was the syntax listed in the readme, but in the actual displayed help after running that command says to use "upx -h". Thanks for the link as well. I now have UPX 3.0, and have noticed that lzma gets better compression by quite a bit
_____________________________
I don't believe in signatures

The developer formerly known as ZGitRDun8705

Log in or register to post comments