Renaming in archives

Here you can propose new features, make suggestions etc.

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
Damel
Member
Member
Posts: 130
Joined: 2003-02-06, 01:11 UTC
Location: Prague, Czech Republic

Renaming in archives

Post by *Damel »

Please add support for renaming inside not only ZIP archives, if possible.
For example, in RARs, operations such as adding/deleting files inside the archive are possible but not renaming files.
Thanks.
The best solution:
1. format C:
2. install TotalCmd
3. install Windows (optionally)
Fla$her
Power Member
Power Member
Posts: 2244
Joined: 2020-01-18, 04:03 UTC

Re: Renaming in archives

Post by *Fla$her »

Damel wrote: 2022-06-20, 19:57 UTC in RARs, operations such as adding/deleting files inside the archive are possible
:shock: Really? For the first time I hear. Are you even aware that WinRAR is a Trialware? The free functionality is read and unpacking only.
I have a scripting solution for 19 additional extensions, including rar, but I don't think it will suit you.
Overquoting is evil! 👎
User avatar
Damel
Member
Member
Posts: 130
Joined: 2003-02-06, 01:11 UTC
Location: Prague, Czech Republic

Re: Renaming in archives

Post by *Damel »

WinRAR with licence expected, ofc. Otherwise, bad things happen! :)

May I have a look at your "scripting solution for 19 additional extensions", please?
The best solution:
1. format C:
2. install TotalCmd
3. install Windows (optionally)
Fla$her
Power Member
Power Member
Posts: 2244
Joined: 2020-01-18, 04:03 UTC

Re: Renaming in archives

Post by *Fla$her »

It's not about the license, but about the freely supplied library. Your statement in the quote is false. There is no built-in ability in TC to delete something from rar archives.

My vbs script requires several additional files to interact with TC. It's not a problem?
Overquoting is evil! 👎
User avatar
Dalai
Power Member
Power Member
Posts: 9364
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: Renaming in archives

Post by *Dalai »

Fla$her wrote: 2022-06-21, 22:46 UTCYour statement in the quote is false.
Not, it's not. All that is required is to install (or unpack) WinRAR (or RAR) and set it as external packer for RAR archives in TC's options. From that point in time, modifications of RAR archives are possible because TC takes care of launching the external packer to make the changes to the archive. The statement doesn't say TC would modify the RAR archives by itself, without an external packer.

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Fla$her
Power Member
Power Member
Posts: 2244
Joined: 2020-01-18, 04:03 UTC

Re: Renaming in archives

Post by *Fla$her »

modifications of RAR archives are possible
There is no modification there. Packing only. You're confusing something.
---------------------------
Total Commander
---------------------------
Function not supported!
---------------------------
ОК
---------------------------
Overquoting is evil! 👎
User avatar
Dalai
Power Member
Power Member
Posts: 9364
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: Renaming in archives

Post by *Dalai »

Of course I can delete files from RAR archives as well as add files to such archives when WinRAR is defined correctly as external packer. This works exactly the same way as for ZIP archives which are natively supported by TC: delete files via F8/DEL and add files via F5. It also works for other archive types when a packer plugin is installed, e.g. for 7z archives when one of the 7-zip packer plugins is present.

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Fla$her
Power Member
Power Member
Posts: 2244
Joined: 2020-01-18, 04:03 UTC

Re: Renaming in archives

Post by *Fla$her »

I realized my mistake. I tied rar to Total7zip.
I.e. the deletion takes place through the WinRAR interface. I sprinkle ashes upon one's head.
But this cannot be compared with packer plugins. WinRAR does not have a separate dialog for changing the name, so this is not potentially applicable to TС.
Overquoting is evil! 👎
User avatar
Damel
Member
Member
Posts: 130
Joined: 2003-02-06, 01:11 UTC
Location: Prague, Czech Republic

Re: Renaming in archives

Post by *Damel »

Fla$her wrote: 2022-06-21, 22:46 UTC My vbs script requires several additional files to interact with TC. It's not a problem?
Hi friend, it's hard to tell without knowing more. Probably not a problem. About what I'm thinking now, if you were so kind, it would be much better to create a dedicated thread with a full description of your scripts. When useful for you - then probably for others as well!

PS: Thank you Dalai for clarification of the issue.
The best solution:
1. format C:
2. install TotalCmd
3. install Windows (optionally)
Fla$her
Power Member
Power Member
Posts: 2244
Joined: 2020-01-18, 04:03 UTC

Re: Renaming in archives

Post by *Fla$her »

Damel wrote: 2022-06-22, 14:47 UTCa dedicated thread with a full description of your scripts. When useful for you - then probably for others as well!
I understand that many of my scripts will be useful. But only for TC I have several hundred of them. Can you imagine such a dump and the reaction of moderators? :lol: In addition, the publication will take a lot of time, which I do not have. There's a lot of work here.
It would be logical to proceed from the query topics (here, for example) and the proposed implementation.
Overquoting is evil! 👎
User avatar
Usher
Power Member
Power Member
Posts: 1675
Joined: 2011-03-11, 10:11 UTC

Re: Renaming in archives

Post by *Usher »

Fla$her wrote: 2022-06-22, 02:13 UTC WinRAR does not have a separate dialog for changing the name, so this is not potentially applicable to TС.
Wrong. You can rename a file with F2 using Winrar GUI file commander or use ancient command line existing already for DOS rar.exe. It's described in rar.txt:

Code: Select all

 rn      Rename archived files.

            The command syntax is:

            rar rn <arcname> <srcname1> <destname1> ... <srcnameN> <destnameN>

            For example, the following command:

            rar rn data.rar readme.txt readme.bak info.txt info.bak

            will rename readme.txt to readme.bak and info.txt to info.bak
            in the archive data.rar.

            It is allowed to use wildcards in the source and destination
            names for simple name transformations like changing file
            extensions. For example:

            rar rn data.rar *.txt *.bak

            will rename all *.txt files to *.bak.

            RAR does not check if the destination file name is already
            present in the archive, so you need to be careful to avoid
            duplicated names. It is especially important when using
            wildcards. Such a command is potentially dangerous, because
            a wrong wildcard may corrupt all archived names.
Andrzej P. Wozniak
Polish subforum moderator
Fla$her
Power Member
Power Member
Posts: 2244
Joined: 2020-01-18, 04:03 UTC

Re: Renaming in archives

Post by *Fla$her »

Usher wrote: 2022-06-22, 19:23 UTCWrong. You can rename a file with F2 using Winrar GUI file commander:
No. File manager is the main window of WinRAR, and not a separate dialog called similarly to deletion.
Usher wrote: 2022-06-22, 19:23 UTCor use ancient command line existing already for DOS rar.exe.
Are you seriously reporting this to the person who wrote the script for this case? :) And in general, I wrote a lot of scripts for different archivers.
The problem is how TC will interact with the deletion via command line. There are some difficulties with the depth of nesting. The command does not always work in some situations.
Overquoting is evil! 👎
Post Reply