MRT: renaming Folder Name - The last Letter position is wrong?!

Please report only one bug per message!

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
rt2ryu
Junior Member
Junior Member
Posts: 24
Joined: 2018-02-26, 10:30 UTC

MRT: renaming Folder Name - The last Letter position is wrong?!

Post by *rt2ryu »

Original Subject was: BatchRename Folder Name like xxxx...yyyyyyy The last Letter position is wrong

Totalcmd version 9.12
OS Windows 10 2016 LTSB.

When I try to Batchrename a folder name like
123456......987654321
(6 dot in the middle )

use the [N1--8] to get the name from the first letter to the letter which start from the last 1 to last 8.

So I hope to get the result:
123456......9
but the result in Reality :
1234.987654321
So the Totalcmd start the last letter from the last dot symbol of "......" , Yes it recognized the . as the separate of filename ,not as a folder name.
So it set as the fifth dot as the last latter.

or you can understand The Totalcmd set as the
123456.....( 5 dot )
as the folder name. the
.987654321
as the suffix .

Hope to fix this question .

As the folder, it should no suffix. The question is made by the saveing of the web page ,which use the many dot in the middle of the name.
User avatar
Stefan2
Power Member
Power Member
Posts: 4124
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: BatchRename Folder Name like xxxx...yyyyyyy The last Letter position is wrong

Post by *Stefan2 »

I am not sure if I understood what you're saying and what you're after (maybe to early in the morning for me)

but try instead of
| File name | Extension |
| [N]         | [E]         |

use
| File name | Extension |
| [A]         |                |



Screenshot of Multi-Rename Tool: https://www.ghisler.com/screenshots/en/06.html




Explanation:
[N] old file name, WITHOUT extension
[E] Extension
[A] Old file name, WITH extension (All characters of the name), without the path
(Press F1-key in MutliRenameTool to read more)



If that doesn't help, post a few real name examples, before and after renaming.
User avatar
Stefan2
Power Member
Power Member
Posts: 4124
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: BatchRename Folder Name like xxxx...yyyyyyy The last Letter position is wrong

Post by *Stefan2 »

rt2ryu wrote: 2018-11-02, 07:55 UTCAs the folder, it should no suffix.
Why "no extension" for folder names? That is a valid name:


https://msdn.microsoft.com/en-us/library/windows/desktop/aa365247(v=vs.85).aspx#naming_conventions
Naming Files, Paths, and Namespaces
Naming Conventions
   The following fundamental rules enable applications to create and process valid names for files and directories, regardless of the file system:
       Use a period to separate the base file name from the extension in the name of a directory or file.





HTH? :D
User avatar
rt2ryu
Junior Member
Junior Member
Posts: 24
Joined: 2018-02-26, 10:30 UTC

Re: MRT: renaming Folder Name - The last Letter position is wrong?!

Post by *rt2ryu »

Thanks use [A1--8] prefect to solve the question
Post Reply