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.
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.
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.
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.
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.
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"
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)