Why is it not working? ZIP=C:\Program Files\WinRAR\WinRAR.exe
Moderators: Hacker, petermad, Stefan2, white
Why is it not working? ZIP=C:\Program Files\WinRAR\WinRAR.exe
Hi
Why is it not working?
ZIP=C:\Program Files\WinRAR\WinRAR.exe
or
ZIP=C:\Program Files\WinRAR\WinRAR.exe -afzip
Please help me
Why is it not working?
ZIP=C:\Program Files\WinRAR\WinRAR.exe
or
ZIP=C:\Program Files\WinRAR\WinRAR.exe -afzip
Please help me
Re: Why is it not working? ZIP=C:\Program Files\WinRAR\WinRAR.exe
Its not possible to my knowledge to make WinRAR the default for zip.
Using WinRAR as Zip packer can be configured using a button like the following
The parameter @%UL is for the selected files to process.
Add the WinRAR switches you may want before the %T
Using WinRAR as Zip packer can be configured using a button like the following
Code: Select all
TOTALCMD#BAR#DATA
"C:\Program Files\WinRAR\WinRAR.exe"
a %T\Selected.zip @%UL
C:\Program Files\WinRAR\WinRAR.exe
WinRAR
-1
Add the WinRAR switches you may want before the %T
Last edited by Horst.Epp on 2021-07-19, 08:55 UTC, edited 2 times in total.
Windows 11 Home, Version 24H2 (OS Build 26100.4061)
TC 11.55 RC2 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.4 x64
TC 11.55 RC2 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.4 x64
Re: Why is it not working? ZIP=C:\Program Files\WinRAR\WinRAR.exe
I want to create a .zip archive using WinRAR
ZIP=C:\Program Files\WinRAR\WinRAR.exe
ZIP=C:\Program Files\WinRAR\WinRAR.exe
Re: Why is it not working? ZIP=C:\Program Files\WinRAR\WinRAR.exe
You can use WinRAR for zip by packer interface if you configure WinRAR as a RAR packer with -afzip option, so TC will create ZIP files with RAR extension. (You can change this on packer dialog window) As Horst.Epp wrote it is impossible to define WinRAR as a ZIP packer - uses different command line options.
P.S. I just tried - you can define WinRAR as a ZIP packer if you add "a" command:
C:\Program Files\WinRAR\WinRAR.exe a -afzip
WinRAR display request for password then, sometimes TC display error "unknown option", while pack works.
But be careful - you can get unexpected behaviour.
P.S. I just tried - you can define WinRAR as a ZIP packer if you add "a" command:
C:\Program Files\WinRAR\WinRAR.exe a -afzip
WinRAR display request for password then, sometimes TC display error "unknown option", while pack works.
But be careful - you can get unexpected behaviour.
Re: Why is it not working? ZIP=C:\Program Files\WinRAR\WinRAR.exe
Is there a reason, why you would want to make WinRar the default zip packer?
Please don't take this as a 'I know better!' type of question. Everybody can do, what they want, at least in regard to TC.
.
I'm just curious about, if there are any advantages in doing, what you ask.
Myself, I'm still using this old one as a zip-packer:
In Configuration / Zip-packer, i have furthermore enabled the option: Use ZIP-NT 2.01
This was originally recommended by Christian Ghisler, but many things has changed since 1993, sooo.. ?
I haven't changed from 'Wcmdzip#.exe' because, it still seems to work on Windows 10, - and as Cogsworth says, 'If it isn't baroque, don't fix it.'
Please don't take this as a 'I know better!' type of question. Everybody can do, what they want, at least in regard to TC.

I'm just curious about, if there are any advantages in doing, what you ask.
Myself, I'm still using this old one as a zip-packer:
Code: Select all
ZIP=%COMMANDER_PATH%\Wcmdzip#.exe
This was originally recommended by Christian Ghisler, but many things has changed since 1993, sooo.. ?
I haven't changed from 'Wcmdzip#.exe' because, it still seems to work on Windows 10, - and as Cogsworth says, 'If it isn't baroque, don't fix it.'

HerbieH*
-Keep on makin' music!
-Keep on makin' music!
Re: Why is it not working? ZIP=C:\Program Files\WinRAR\WinRAR.exe
Nope.
TC internally sends parameters/switches/commands/options to packer.
They are different for ZIP compared with these for WinRAR.
TC internally sends parameters/switches/commands/options to packer.
They are different for ZIP compared with these for WinRAR.
- ghisler(Author)
- Site Admin
- Posts: 50561
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: Why is it not working? ZIP=C:\Program Files\WinRAR\WinRAR.exe
I cannot recommend doing this even if it seems to work with parameters
a -afzip
because WinRAR uses different command line options than info-zip or pkzip. So checking/unchecking options in the pack dialog like "Also pack path names" can have unexpected results.
a -afzip
because WinRAR uses different command line options than info-zip or pkzip. So checking/unchecking options in the pack dialog like "Also pack path names" can have unexpected results.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: Why is it not working? ZIP=C:\Program Files\WinRAR\WinRAR.exe
As i wrote earlier.
But configure WinRAR as a RAR packer with -afzip option should be safe, right?
So only drawback here would be create ZIP file with RAR extension (may be change at packer dialog).
Another way is to use WinRAR as a ZIP packer through MULTIARC.
But configure WinRAR as a RAR packer with -afzip option should be safe, right?
So only drawback here would be create ZIP file with RAR extension (may be change at packer dialog).
Another way is to use WinRAR as a ZIP packer through MULTIARC.
- ghisler(Author)
- Site Admin
- Posts: 50561
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: Why is it not working? ZIP=C:\Program Files\WinRAR\WinRAR.exe
-afzip option only tells WinRAR to create ZIP archives instead of RAR archives. The other switches like "encrypt" or "include full path" are still those of WinRAR, not those of pkzip or info-zip sent by TC.
That would definitely be a much better solution.Another way is to use WinRAR as a ZIP packer through MULTIARC.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: Why is it not working? ZIP=C:\Program Files\WinRAR\WinRAR.exe
I wrote about configure WinRAR as a RAR packer with ZIP create option!
In this case WinRAR create ZIP archive with RAR extension.
P.S. Just tried - encrypt works properly.
So all switches for RAR are valid, right?But configure WinRAR as a RAR packer with -afzip option should be safe, right?
So only drawback here would be create ZIP file with RAR extension (may be change at packer dialog).
In this case WinRAR create ZIP archive with RAR extension.
P.S. Just tried - encrypt works properly.
- ghisler(Author)
- Site Admin
- Posts: 50561
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: Why is it not working? ZIP=C:\Program Files\WinRAR\WinRAR.exe
Ah, that's what you mean! Yes, it should work, but wouldn't it create files with extension .RAR?
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: Why is it not working? ZIP=C:\Program Files\WinRAR\WinRAR.exe
Exactly. What i describe as a only drawback, and extension can be change on "Pack files" dialog window.
Another good way is create button as a Horst.Epp advised.
Here slightly modified version - no need to enter ZIP name as a using "ag" switch - name is created from datetime.
Another good way is create button as a Horst.Epp advised.
Here slightly modified version - no need to enter ZIP name as a using "ag" switch - name is created from datetime.
Code: Select all
TOTALCMD#BAR#DATA
"C:\Program Files\WinRAR\WinRAR.exe" a -r -afzip -ag
%T @%UL
C:\Program Files\WinRAR\WinRAR.exe
WinRAR (ZIP)
0
-1