This forum uses cookies. Click X button to hide this message. What is stored? / Privacy
Total Commander Forum Index Total Commander
Forum - Public Discussion and Support
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Pack files - Create separate archives...

 
Post new topic   Reply to topic    Total Commander Forum Index -> TC Behaviour which will not be changed Printable version
View previous topic :: View next topic  
Author Message
Damel
Member
Member


Joined: 05 Feb 2003
Posts: 100
Location: Prague, Czech Republic

PostPosted: Thu May 17, 2018 6:32 am    Post subject: Pack files - Create separate archives... Reply with quote

Files are selected and packed (Pack files - Create separate archives, one per selected file/dir). For example:
tc920x32_64_b3.exe
tc920x32_b3.exe
tc920x64_b3.exe

A) zip:c:\*.*.zip
create:
tc920x32_64_b3.exe.zip
tc920x32_b3.exe.zip
tc920x64_b3.exe.zip
= OK

B) zip:c:\2018 *.*.zip
create:
2018 x32_64_b3.exe.zip
2018 x32_b3.exe.zip
2018 x64_b3.exe.zip
= OK

C) zip:c:\2018-0 *.*.zip
create:
2018-0 2_64_b3.exe.zip
2018-0 2_b3.exe.zip
2018-0 4_b3.exe.zip

D) zip:c:\2018-05 *.*.zip
create:
2018-05 _64_b3.exe.zip
with tc920x32_64_b3.exe
2018-05 _b3.exe.zip
with tc920x32_b3.exe and tc920x64_b3.exe

E) zip:c:\2018-05-16 *.*.zip
create:
2018-05-16 .exe.zip
with tc920x32_64_b3.exe
2018-05-16 _b3.exe.zip
with tc920x32_b3.exe and tc920x64_b3.exe

I'm not sure if this is bug or not. But I will be pleased if it will be possible to use what we need in file names of created archives.
_________________
The best solution:
1. format C:
2. install TotalCmd
3. install Windows (optionally)
Back to top
View user's profile Send private message Send e-mail
petermad
Power Member
Power Member


Joined: 05 Feb 2003
Posts: 7668
Location: Valsted, Denmark

PostPosted: Thu May 17, 2018 8:21 am    Post subject: Reply with quote

Quote:
B) zip:c:\2018 *.*.zip
create:
2018 x32_64_b3.exe.zip
2018 x32_b3.exe.zip
2018 x64_b3.exe.zip
= OK

I don't think this is OK either - I would have expected:

2018 tc920x32_64_b3.exe.zip
2018 tc920x32_b3.exe.zip
2018 tc920x64_b3.exe.zip


And with:
Quote:
E) zip:c:\2018-05-16 *.*.zip
create:
2018-05-16 .exe.zip
with tc920x32_64_b3.exe
2018-05-16 _b3.exe.zip
with tc920x32_b3.exe and tc920x64_b3.exe

I would have expected:

2018-05-16 tc920x32_64_b3.exe.zip
2018-05-16 tc920x32_b3.exe.zip
2018-05-16 tc920x64_b3.exe.zip
_________________
#524
Danish Total Commander Translator
TC 9.12 32+64bit on Win XP 32bit, Win 7, 8.1 & 10 64bit. TC 2.91b2 on Android 6.0

Get Extended Total Commander Menus
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Damel
Member
Member


Joined: 05 Feb 2003
Posts: 100
Location: Prague, Czech Republic

PostPosted: Thu May 17, 2018 12:53 pm    Post subject: Reply with quote

Thank you for your corrections of my mistake, and yes, I would have expected that behavior too.
_________________
The best solution:
1. format C:
2. install TotalCmd
3. install Windows (optionally)
Back to top
View user's profile Send private message Send e-mail
Hacker
Moderator
Moderator


Joined: 06 Feb 2003
Posts: 10851
Location: Bratislava, Slovakia

PostPosted: Thu May 17, 2018 1:41 pm    Post subject: Reply with quote

Neither new nor bug. By design and been like that since forever.
(Not saying it is intuitive.)

Roman
_________________
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
Back to top
View user's profile Send private message Send e-mail
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 35473
Location: Switzerland

PostPosted: Fri May 18, 2018 4:25 am    Post subject: Reply with quote

No, it's not a bug - the * means the remaining characters from this position until the end of the name.
_________________
Author of Total Commander
http://www.ghisler.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Damel
Member
Member


Joined: 05 Feb 2003
Posts: 100
Location: Prague, Czech Republic

PostPosted: Fri May 18, 2018 4:54 am    Post subject: Reply with quote

Would it be, please, enhanced into an intuitive state, where * = all original characters from the file name, so we can put what we need before it?
_________________
The best solution:
1. format C:
2. install TotalCmd
3. install Windows (optionally)
Back to top
View user's profile Send private message Send e-mail
petermad
Power Member
Power Member


Joined: 05 Feb 2003
Posts: 7668
Location: Valsted, Denmark

PostPosted: Fri May 18, 2018 6:18 am    Post subject: Reply with quote

Quote:
Would it be, please, enhanced into an intuitive state, where * = all original characters from the file name, so we can put what we need before it?

I second that - I can't even see the benefits of the current behaviour
_________________
#524
Danish Total Commander Translator
TC 9.12 32+64bit on Win XP 32bit, Win 7, 8.1 & 10 64bit. TC 2.91b2 on Android 6.0

Get Extended Total Commander Menus
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Hacker
Moderator
Moderator


Joined: 06 Feb 2003
Posts: 10851
Location: Bratislava, Slovakia

PostPosted: Fri May 18, 2018 10:01 am    Post subject: Reply with quote

I agree that it would be more intuitive as suggested.

Roman
_________________
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
Back to top
View user's profile Send private message Send e-mail
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 35473
Location: Switzerland

PostPosted: Mon May 21, 2018 2:24 am    Post subject: Reply with quote

Actually it's how the command line in Windows works (cmd.exe).

For example, try this:
echo . > filename.txt
ren filename.txt name*.txt
gives namename.txt as the result, and not namefilename.txt!
_________________
Author of Total Commander
http://www.ghisler.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
petermad
Power Member
Power Member


Joined: 05 Feb 2003
Posts: 7668
Location: Valsted, Denmark

PostPosted: Mon May 21, 2018 4:27 am    Post subject: Reply with quote

2ghisler(Author)
I don't think you can compare it to renaming (or copying) one file.

The "Create separate archives, one per selected file/dir)" function is more comparable to an iteration:
for %i (in filelist) do copy %i %i.zip

so adding name in front of it should be like:
for %i (in filelist) do copy %i name%i.zip

which would give the result Damel, Hacker and I expect.
_________________
#524
Danish Total Commander Translator
TC 9.12 32+64bit on Win XP 32bit, Win 7, 8.1 & 10 64bit. TC 2.91b2 on Android 6.0

Get Extended Total Commander Menus
Back to top
View user's profile Send private message Send e-mail Visit poster's website
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 35473
Location: Switzerland

PostPosted: Tue May 22, 2018 8:38 am    Post subject: Reply with quote

Sorry, I prefer to keep it as it is now.
_________________
Author of Total Commander
http://www.ghisler.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Total Commander Forum Index -> TC Behaviour which will not be changed All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Imprint/Impressum: This site is maintained by Ghisler Software GmbH
Privacy Policy | Datenschutzerklärung | Politique de Confidentialité

Using phpBB © phpBB Group