Total7zip

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
sas2000
Power Member
Power Member
Posts: 682
Joined: 2003-02-07, 04:32 UTC
Location: Galiza

Post by *sas2000 »

 
Hi, thank you for this great plugin.
Total7zip wrote: Total7zip v0.8.4.0

In all other cases Total7zip.xml will be saved to the directory where Total Commander stores the wincmd.ini.
I do not use portable mode, but i would prefer to be able to store Total7zip.xml in the plugin folder as it was in previous versions. May you add an option to allow it ?

Thanx :!:
 
User avatar
Total7zip
Junior Member
Junior Member
Posts: 74
Joined: 2010-12-18, 07:54 UTC

Post by *Total7zip »

this is tricky - you want to have a setting to choose where to store plugin settings. =)

0.8.4.0 works like this - if TC uses wincmd.ini is in TC folder, then plugin will save Total7zip.xml to the plugin folder (as it was before).
but if TC uses some other place for wincmd.ini, plugin will use the same place, as suggested by ghisler(Author).

I compare COMMANDER_INI and COMMANDER_PATH variables to find out what's happening.

I think it's clear and easy to use.
User avatar
sas2000
Power Member
Power Member
Posts: 682
Joined: 2003-02-07, 04:32 UTC
Location: Galiza

Post by *sas2000 »

 
Total7zip wrote:this is tricky - you want to have a setting to choose where to store plugin settings. =)
If TC uses some other place for wincmd.ini for example C:\TOTALCMD\CONFIGURATION\WINCMD.INI , and Total7zip.wcx is not found in this directory.

Then Total7zip should look in [PackerPlugins] section for 7Z entries like this one :

7Z=735,%Commander_Path%\PLUGINS\WCX\Total7zip\Total7zip.wcx

This will mean that Total7zip.xml can be found in
%Commander_Path%\PLUGINS\WCX\Total7zip\Total7zip.xml

Is this possible ?, thanks :!:
 
User avatar
Balderstrom
Power Member
Power Member
Posts: 2148
Joined: 2005-10-11, 10:10 UTC

Post by *Balderstrom »

There's only a couple plugins I know of that possibly force themselves into my wincmd folder: C:\User\SELF\_TC_\wincmd\, And it's pretty poor form that they do so.
---> contplug.ini
---> ShellDetails.ini

Everything else, is located where it should be:
C:\User\SELF\_TC_\PLUGINS\wcx\
C:\User\SELF\_TC_\PLUGINS\wdx\
C:\User\SELF\_TC_\PLUGINS\wfx\
C:\User\SELF\_TC_\PLUGINS\wlx\
At the worst, a badly behaving plugin should go into the toplevel plugin folder.
---> C:\User\SELF\_TC_\PLUGINS\

There's no reasonable excuse for a plugin config to be located in the wincmd.ini folder. That folder is for my wincmd files only.
tcignore.txt
usercmd.ini
wcx_ftp.ini
wincmd.ini
wincmd.key
wincmd_Administrator_Lister.ini
wincmd_CustomFields.ini
wincmd_DirMenu.ini
wincmd_History.ini
wincmd_History-LR.ini
wincmd_History-RenameSearch.ini
wincmd_History-Selection.ini
wincmd_InternalAssoc.ini
wincmd_Lister.ini
wincmd_MRT.ini
wincmd_OpenTabs.ini
wincmd_Plugins-Content.ini
wincmd_Plugins-Disabled.ini
wincmd_Plugins-FileSys.ini
wincmd_Plugins-Lister.ini
wincmd_Plugins-Packer.ini
wincmd_Shortcuts.ini
wincmd_StartMenu.ini
wincmd_Templates-Rename.ini
wincmd_Templates-Searches.ini
User avatar
Lefteous
Power Member
Power Member
Posts: 9535
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2Balderstrom
Strange - why should a plugin store its settings files next to its binaries and TC in the multi-user application data folder? Where is the pattern?

ShellDetails store its data by default where TC recommends it but you can move it to a couple of locations and it will be automatically used from there. ShellDetails doesn't force anything.
User avatar
Balderstrom
Power Member
Power Member
Posts: 2148
Joined: 2005-10-11, 10:10 UTC

Post by *Balderstrom »

The plugins store their data in the SINGLE-USER data location for TC...
And they are installed into the SINGLE-user data location.
Albeit perhaps TC could/should distinguish between binary/plugin install location, and plugin/data --- but it does not.
*BLINK* TC9 Added WM_COPYDATA and WM_USER queries for scripting.
User avatar
Lefteous
Power Member
Power Member
Posts: 9535
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

But why do you install TC to the program dir but not the plugins? Both are binaries.
User avatar
Total7zip
Junior Member
Junior Member
Posts: 74
Joined: 2010-12-18, 07:54 UTC

Post by *Total7zip »

sas2000 wrote: 
If TC uses some other place for wincmd.ini for example C:\TOTALCMD\CONFIGURATION\WINCMD.INI , and Total7zip.wcx is not found in this directory...
 
I uploaded new Total7zip v0.8.4.1 on http://www.totalcmd.net/
Now it supports what you want - if TC stores wincmd.ini _anywhere_ _inside_ %COMMANDER_PATH% folder, the plugin creates Total7zip.xml in its own folder.

I think this will work for all users.
Portable users will have Total7zip.xml in the plugin folder, and all other users will have Total7zip.xml in their profiles.
User avatar
Balderstrom
Power Member
Power Member
Posts: 2148
Joined: 2005-10-11, 10:10 UTC

Post by *Balderstrom »

@Lefteous, Some have binaries in them, many are just dll's
This is how I set up my TC for years:
C:\Users\SELF\Application Data\_TC_\GUI\Icons\
C:\Users\SELF\Application Data\_TC_\GUI\MainMenu\
C:\Users\SELF\Application Data\_TC_\GUI\ToolBars\
C:\Users\SELF\Application Data\_TC_\PLUGINS\wcx\
C:\Users\SELF\Application Data\_TC_\PLUGINS\wdx\
C:\Users\SELF\Application Data\_TC_\PLUGINS\wfx\
C:\Users\SELF\Application Data\_TC_\PLUGINS\wlx\
C:\Users\SELF\Application Data\_TC_\TABS\
C:\Users\SELF\Application Data\_TC_\wincmd\
And my wincmd has pretty much all the sections redirected, as noted above.

TC's program files folder contains TC's install, and that's it.

I throw a junction into the program files folder, called Data, that points to the _TC_ Dir above. And I launch TC, with a .cmd

Code: Select all

@ECHO OFF
SET TC=%ProgramFiles%\TotalCMD
SET TCmd=%TC%\TotalCMD.exe
SET TCDATA=%APPDATA%\_TC_
SET TCTOOL=%wuBIN%\TCTools
SET TCMC=%TCTOOL%\TCMC.exe 50
:: junction -d "%TC%\Data"
:: junction "%TC%\Data" "%TCDATA%"
START "" "%ProgramFiles%\TotalCMD\TotalCMD.exe" /I="f:\Program Files\TotalCMD\Data\wincmd\wincmd.ini"
User avatar
sas2000
Power Member
Power Member
Posts: 682
Joined: 2003-02-07, 04:32 UTC
Location: Galiza

Post by *sas2000 »

 
Total7zip wrote: I uploaded new Total7zip v0.8.4.1, now it supports what you want
Thank you :!: :!:
 
Jon Canale
Member
Member
Posts: 141
Joined: 2003-02-07, 12:54 UTC

Post by *Jon Canale »

Old readme's and 7zip in 0.8.4.1? Older than what was in the archive of 0.8.4.0.? Mistake?

And thanks for the plugin - very useful.
User avatar
Lefteous
Power Member
Power Member
Posts: 9535
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2Balderstrom
My question was _why_ do you perform such a separation. I don't see a clear concept behind this configuration.
norambna
New Member
New Member
Posts: 1
Joined: 2011-04-09, 22:47 UTC

Post by *norambna »

Hi, I'm running Total Commander 7.56a and just installed Total7zip 0.8.4.1. It seems to work fine, but I have problems when trying to encrypt.

I select the file or folder, then I select Total7zip for compressing and enter the password under Configure -> Encryption, but the resulting .7z file is not encrypted.

Any hints? TIA!


edit: problem solved! I didn't set the "encrypt" check box in the "Pack files" dialog :P
User avatar
GammelBert
Member
Member
Posts: 109
Joined: 2007-02-21, 18:42 UTC
Location: Germany

Post by *GammelBert »

Nice plugin!
I'd like to suggest an option to set the maximum number of saved passwords, for example 20. Total7zip would then save only the 20 last used passwords. If a password is used that is already in this list it should be put in the 'newest' position of the password list. With such an option users wouldn't have the need to edit the settings file manually in order to trim it's size.
User avatar
dllee
Junior Member
Junior Member
Posts: 62
Joined: 2011-04-09, 12:29 UTC
Location: Taiwan
Contact:

Post by *dllee »

2Total7zip
Features requesting:
1. Is it possible, when compress 7z by Total7zip, do not show the 7z configuration dialog, and using previous settings to compress the new 7z archives directly?
Config 7z options only when user press [Configure...] button on the TC Pack files dialog.

2. provide "set 7z datetime to newest file" feature,
like TC build in zip packer "set zip datetime to newest file".
this option setting in wincmd.ini is

Code: Select all

[Packer]
ZipSetDateToNewest=1
Thanks.
Post Reply