Changing START MENU

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
admeis
Junior Member
Junior Member
Posts: 8
Joined: 2003-10-26, 17:01 UTC

Changing START MENU

Post by *admeis »

Hi.
I've been spending a couple of hours trying to customize my Start Menu.
That was not my first time doing that, but it was the first time I tried to make something tricky...
I would have needed:
1. TARGET filename without extension
2. TARGET filename extension
3. Current Source/Target folder name
(I mean: source=c:\qwe\rty\uio\ -> return value should be "uio")

I read the whole Help file (Total Commander v5.51), but I couldn't find any useful parameter...
I had to rename files using the Start menu, I found the "cm_RenMov (Rename/Move files)" command, BUT I couldn't pass it any parameter or, if that could have been done somehow, it's undocumented... I had to use the good old rename dos command...

Bye
Admeis
User avatar
Lefteous
Power Member
Power Member
Posts: 9535
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

What you need to do is to use the Multi Rename Tool (Files/Multi Rename Tool (Ctrl+T)!
robert.china
Junior Member
Junior Member
Posts: 4
Joined: 2003-10-27, 09:13 UTC

Post by *robert.china »

ctrl-T can rename files in a batch, it is useful if you want to rename a lot files with the same rule
admeis
Junior Member
Junior Member
Posts: 8
Joined: 2003-10-26, 17:01 UTC

Post by *admeis »

Lefteous wrote:What you need to do is to use the Multi Rename Tool (Files/Multi Rename Tool (Ctrl+T)!
Multi Rename Tool is a really great tool, but this time it's useless.

My problem is:
1. Source folder is "c:\SourceFolderName"
2. Source folder files are: File1.ext, File2.ext and File3.ext.
3. I need to rename files according to this rules (there is ONLY one file in each folder to be renamed according to that rule):
File1.ext -> _SourceFolderName@something1.ext
File2.ext -> _SourceFolderName@something2.ext
File3.ext -> _SourceFolderName@something3.ext
(the something1/something2/something3 items only depend on FileX.ext content...)

I have solved this problem configuring StartMenu this way:
1. I created 3 StartMenu items (rename1, rename2 and rename3) configured as:
a. Command: CMD <== (I'm running Windows 2000)
b. Parameters: /C "rename "%M" "_%O@somethingX.jpg""
2. To use it I need to have a file called as current folder (FolderNameFile.xxx).
3. Then:
a. select on TARGET File1.ext
b. select on SOURCE FolderNameFile.xxx
c. Select Rename1/2/3 from StartMenu according to File1.ext content.
That's it. It's REALLY tricky but it works.

BTW If I have had some %X (or whatever) parameter working as in point 3 of my first msg, Parameters would have been this way:
/C "rename "%N" "_%X@somethingX.E""
...and using it would have been less tricky, I mean, just select your file and then select Rename1/2/3 from StartMenu according to File1.ext content...

AND if I could pass parameters to "cm_RenMov (Rename/Move files)", I could have been prompted for Overwrite / confirm...

/*************************************/

Example:

Before:
======
Directory C:\Something\ThisFolder
xx/xx/2002 xx.xx 41.232 File1.ext
xx/xx/2002 xx.xx 42.524 File2.ext
xx/xx/2002 xx.xx 31.221 File3.ext


After:
======
Directory C:\Something\ThisFolder
xx/xx/2002 xx.xx 41.232 _ThisFolder@suffix1.ext
xx/xx/2002 xx.xx 42.524 _ThisFolder@suffix2.ext
xx/xx/2002 xx.xx 31.221 _ThisFolder@suffix3.ext

/*************************************/

Thanks.
Bye
admeis
User avatar
Lefteous
Power Member
Power Member
Posts: 9535
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2admeis

Please correct me if I misunderstood your request!

Select files and start the Multi Rename tool
Use this rename mask:
file name: [P]@Something[C]
extension: [E]
admeis
Junior Member
Junior Member
Posts: 8
Joined: 2003-10-26, 17:01 UTC

Post by *admeis »

Lefteous wrote:2admeis

Please correct me if I misunderstood your request!

Select files and start the Multi Rename tool
Use this rename mask:
file name: [P]@Something[C]
extension: [E]
That works fine.
But... there's no more then 3 "Something" I have to deal with...
(As "Something1/2/3" I mean 3 different strings... so no counter at all...
Something1 could be "This", Something2 could be "That" and Something3 could be "Here" or whatever...)
I'd like to create 3 different macros, StartMenu Items or whatever, so that I can rename files really fast!
(is there any way I can pass FileName and Extension parameters to "cm_MultiRenameFiles" ?)

Thanks.
admeis
User avatar
Lefteous
Power Member
Power Member
Posts: 9535
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2admeis

There is no way to pass parameters to cm_MultiRenameFiles.
You can quick save/load a "multi rename tool"-setting by pressing F2. It's not a one click solution, but it should be fast enough: Ctrl+T, F2, choose entry, type "this or "that" to file name mask, Return (assumed that you have saved your setting before).
admeis
Junior Member
Junior Member
Posts: 8
Joined: 2003-10-26, 17:01 UTC

Post by *admeis »

Lefteous wrote:2admeis
There is no way to pass parameters to cm_MultiRenameFiles.
:(:(:(
Why not adding that (and even the %X parameter from my previous msg) to the ToDo list?
Lefteous wrote: You can quick save/load a "multi rename tool"-setting by pressing F2. It's not a one click solution, but it should be fast enough: Ctrl+T, F2, choose entry, type "this or "that" to file name mask, Return (assumed that you have saved your setting before).
I'll save 3 different configurations and switch to the one I need...
It's not as fast as I'd like, anyway... :)

Thanks
Bye
admeis
Post Reply