cm_PackFiles without CTRL

Here you can propose new features, make suggestions etc.

Moderators: white, Hacker, petermad, Stefan2

Post Reply
monarch-lfv
Junior Member
Junior Member
Posts: 73
Joined: 2022-06-16, 23:37 UTC

cm_PackFiles without CTRL

Post by *monarch-lfv »

Make separate commands for archiving in the current folder (without attaching to CTRL), for example:

Code: Select all

cm_PackFilesCurDir - pack files in current directory
cm_PackFilesCurDirDel - pack files in current directory and del original
Or make the parameters to the main command cm_PackFiles.
So that you can make a button with such a command without pressing CTRL and for use in conjunction of the other сommands.
Fla$her
Power Member
Power Member
Posts: 2330
Joined: 2020-01-18, 04:03 UTC

Re: cm_PackFiles without CTRL

Post by *Fla$her »

If a name (like "%B.zip") without a path is specified for /T=, think packaging is performed in the active panel directory.
The directory on the opposite panel is also the current one.
Overquoting is evil! 👎
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48118
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: cm_PackFiles without CTRL

Post by *ghisler(Author) »

You can use cm_PackFiles /T="archivename.zip" to pack to the current directory.
And to move, use parameter /M

I will add a special handling to use the default name to the next beta:
/T="" or /T="." will then pack to current directory with the default name,
and /T="c:\path\." will pack to the given path with the default name.
Author of Total Commander
https://www.ghisler.com
Fla$her
Power Member
Power Member
Posts: 2330
Joined: 2020-01-18, 04:03 UTC

Re: cm_PackFiles without CTRL

Post by *Fla$her »

ghisler(Author) wrote: 2023-06-30, 09:06 UTC I will add a special handling to use the default name to the next beta:
/T="" or /T="." will then pack to current directory with the default name,
and /T="c:\path\." will pack to the given path with the default name.
The right decision. 👍
The folder of the passive panel is also the current folder for it. It is necessary to separate the concepts of current and working.
Overquoting is evil! 👎
sky66
Member
Member
Posts: 149
Joined: 2014-02-22, 08:44 UTC

Re: cm_PackFiles without CTRL

Post by *sky66 »

ghisler(Author) wrote: 2023-06-30, 09:06 UTC You can use cm_PackFiles /T="archivename.zip" to pack to the current directory.
And to move, use parameter /M

I will add a special handling to use the default name to the next beta:
/T="" or /T="." will then pack to current directory with the default name,
and /T="c:\path\." will pack to the given path with the default name.
Can I also ask if this parameter /T="" or /T="." supports cm_UnpackFiles ?

Since currently Ctrl + cm_UnpackFiles cannot unpack files to the current folder.
I used alternative solutions called : "cm_MatchSrc,cm_UnpackFiles" in the button.
However, the target panel will change.
Another way to unpack file to the current folder is by using the button with 7zip's parameters.
Fla$her
Power Member
Power Member
Posts: 2330
Joined: 2020-01-18, 04:03 UTC

Re: cm_PackFiles without CTRL

Post by *Fla$her »

sky66 wrote: 2023-06-30, 11:51 UTC Can I also ask if this parameter /T="" or /T="." supports cm_UnpackFiles ?
Yes. Why couldn't it be checked first? I checked it a month ago.
Overquoting is evil! 👎
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48118
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: cm_PackFiles without CTRL

Post by *ghisler(Author) »

Can I also ask if this parameter /T="" or /T="." supports cm_UnpackFiles ?
Have you actually tried it?
cm_unpackfiles /T=""
already unpacks to the archive directory.
Author of Total Commander
https://www.ghisler.com
sky66
Member
Member
Posts: 149
Joined: 2014-02-22, 08:44 UTC

Re: cm_PackFiles without CTRL

Post by *sky66 »

ghisler(Author) wrote: 2023-07-02, 10:44 UTC
Can I also ask if this parameter /T="" or /T="." supports cm_UnpackFiles ?
Have you actually tried it?
cm_unpackfiles /T=""
already unpacks to the archive directory.
Yes, I have tried it.
"Unpack specific files from archive to" field will become empty, the files will be unpacked to the same folder as the archive.
However, what I expect is that the field will display the current directory name, such as "c:\path", which is easier for people to understand, instead of leaving it empty, even though the empty result is the same.

After several tests, the expected results can be achieved using the following method. Thank you.
Command: cm_UnpackFiles
Parameters: /T="%P"
sa16
Senior Member
Senior Member
Posts: 219
Joined: 2021-09-10, 07:15 UTC

Re: cm_PackFiles without CTRL

Post by *sa16 »

History.txt wrote:30.06.23 Added: cm_packFiles: Use /T="" or /T="." to pack to source directory with default name, or /T="c:\path\." to pack to given path with default name (32/64)
Confirmed implemented in TC 11.00b10, thank you!

Add
There are problems.
Post Reply