Page 1 of 1

cm_PackFiles without CTRL

Posted: 2023-06-30, 04:21 UTC
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.

Re: cm_PackFiles without CTRL

Posted: 2023-06-30, 08:55 UTC
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.

Re: cm_PackFiles without CTRL

Posted: 2023-06-30, 09:06 UTC
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.

Re: cm_PackFiles without CTRL

Posted: 2023-06-30, 09:35 UTC
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.

Re: cm_PackFiles without CTRL

Posted: 2023-06-30, 11:51 UTC
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.

Re: cm_PackFiles without CTRL

Posted: 2023-06-30, 12:07 UTC
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.

Re: cm_PackFiles without CTRL

Posted: 2023-07-02, 10:44 UTC
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.

Re: cm_PackFiles without CTRL

Posted: 2023-07-02, 11:47 UTC
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"

Re: cm_PackFiles without CTRL

Posted: 2023-07-06, 06:50 UTC
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.