[TC 11.00rc2] Auto-renamed copied

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
reddytersqt
Junior Member
Junior Member
Posts: 3
Joined: 2023-07-23, 16:45 UTC

[TC 11.00rc2] Auto-renamed copied

Post by *reddytersqt »

TC 11.00rc2 and older version 10.52 etc

if have file:
abc(1).txt
and copy with Auto-renamed copied:
abc(1).txt

result file list:
abc(1).txt
abc (2).txt

renamed copy with odd space
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6498
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: [TC 11.00rc2] Auto-renamed copied

Post by *Horst.Epp »

Not confirmed
Result here is
abc(1).txt
abc(2).txt
Windows 11 Home x64 Version 23H2 (OS Build 22631.3527)
TC 11.03 x64 / x86
Everything 1.5.0.1373a (x64), Everything Toolbar 1.3.3, Listary Pro 6.3.0.73
QAP 11.6.3.2 x64
reddytersqt
Junior Member
Junior Member
Posts: 3
Joined: 2023-07-23, 16:45 UTC

Re: [TC 11.00rc2] Auto-renamed copied

Post by *reddytersqt »

Horst.Epp wrote: 2023-07-23, 17:10 UTC Not confirmed
Result here is
abc(1).txt
abc(2).txt
So normal auto-renamed with one space
Result here is
abc (1).txt
abc (2).txt

you write without space two file.
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6498
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: [TC 11.00rc2] Auto-renamed copied

Post by *Horst.Epp »

reddytersqt wrote: 2023-07-23, 17:24 UTC
Horst.Epp wrote: 2023-07-23, 17:10 UTC Not confirmed
Result here is
abc(1).txt
abc(2).txt
So normal auto-renamed with one space
Result here is
abc (1).txt
abc (2).txt

you write without space two file.
I don't understand what your last text should say ?
You reported having a file abc(1).txt and the renamed has a space.
This is not the case.
Last edited by Horst.Epp on 2023-07-23, 17:49 UTC, edited 1 time in total.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3527)
TC 11.03 x64 / x86
Everything 1.5.0.1373a (x64), Everything Toolbar 1.3.3, Listary Pro 6.3.0.73
QAP 11.6.3.2 x64
User avatar
Gral
Power Member
Power Member
Posts: 1467
Joined: 2005-01-26, 15:12 UTC

Re: [TC 11.00rc2] Auto-renamed copied

Post by *Gral »

reddytersqt wrote: 2023-07-23, 16:51 UTC TC 11.00rc2 and older version 10.52 etc

if have file:
abc(1).txt
and copy with Auto-renamed copied:
abc(1).txt

result file list:
abc(1).txt
abc (2).txt

renamed copy with odd space
I can confirm this behaviour for TC 11 RC2 both x32 and x64 versions
hi5
Power Member
Power Member
Posts: 551
Joined: 2012-11-03, 11:35 UTC
Contact:

Re: [TC 11.00rc2] Auto-renamed copied

Post by *hi5 »

Win10 - 11.00RC2 32/64 bit I get the same space inserted

abc(1).txt
abc (2).txt
F4MiniMenu (Forum) - Open selected file(s) from TC in defined editor(s) - A (minimalistic) clone of F4Menu
Source at GitHub (AutoHotkey). TCSyncComments (copy file comments)
User avatar
petermad
Power Member
Power Member
Posts: 14809
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [TC 11.00rc2] Auto-renamed copied

Post by *petermad »

2reddytersqt

See the help:
help wrote:AutoRenameMode=3 Determines how files are auto-renamed when copying or in multi-rename tool. Sum of:
1: append number (x) separated by space, e.g. name (2).txt instead of name(2).txt
2: start number at (2), not (1), e.g. name.txt, name (2).txt etc.
So set AutoRenameMode=2 in the [Configuration] section in your curent wincmd.ini file.

So no bug.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
reddytersqt
Junior Member
Junior Member
Posts: 3
Joined: 2023-07-23, 16:45 UTC

Re: [TC 11.00rc2] Auto-renamed copied

Post by *reddytersqt »

petermad wrote: 2023-07-24, 01:53 UTC 2reddytersqt

See the help:
help wrote:AutoRenameMode=3 Determines how files are auto-renamed when copying or in multi-rename tool. Sum of:
1: append number (x) separated by space, e.g. name (2).txt instead of name(2).txt
2: start number at (2), not (1), e.g. name.txt, name (2).txt etc.
So set AutoRenameMode=2 in the [Configuration] section in your curent wincmd.ini file.

So no bug.
This is real "code smells" if i change AutoRenameMode=2 i have this:
abc.txt
abc (2).txt
and copy with Auto-renamed copied:
abc.txt

result file list:
abc.txt
abc(2).txt
abc (2).txt
//--------------------------------------------
also, autorename number signed int:
abc(2147483647).txt
and copy with Auto-renamed copied:
abc(2147483647).txt

result file list:
abc(2147483647).txt
abc(-2147483648).txt

further this gives:
abc(2147483647).txt
abc(-2147483648).txt
and copy with Auto-renamed copied:
abc(2147483647).txt

result file list:
abc(2147483647).txt
abc(-2147483648).txt
abc(-2147483648)(2).txt
//--------------------------------------

this is not relevant, but:
Windows 11 file explorer search first pair () regular exsperssion
abc(-2) copy (2).txt
abc(2) copy (2).txt
and copy with Auto-renamed copied:
abc(-2) copy (2).txt
abc(3) copy (2).txt

result file list:
abc(-1) copy (2).txt
abc(-2) copy (2).txt
abc(2) copy (2).txt
abc(3) copy (2).txt
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 11.00rc2] Auto-renamed copied

Post by *ghisler(Author) »

Since AutoRenameMode=3 is the default, TC will append a space and start the numbering with 2 and not 1.
So when you have
abc(1).txt
and copy with Auto-renamed copied:
abc(1).txt
then TC sees the number and increases it by 1, but adds the space as AutoRenameMode=3 demands.

Moderator message

Moved to will not be changed
Author of Total Commander
https://www.ghisler.com
Post Reply