Small macro challenge?!

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
Dazzer
Junior Member
Junior Member
Posts: 67
Joined: 2016-12-14, 08:35 UTC
Location: Amsterdam

Small macro challenge?!

Post by *Dazzer »

Hi folks,

I imagine this:

I have a folder that contains the following files:

001.jpg
002.jpg
003.jpg
004.jpg

I want to rename them in a batch to remove ONLY the first zero of each filename, so i get:

01.jpg
02.jpg
etc.....

Actually, i already know how to do this, but i'd like to do it as a one click process.

So, i want to navigate to the folder, select the files and then only perform a one click action to remove the first zero.

Even better would be if that "macro" could be assigned to a button on my buttons bar.

Anyone have any idea if this is achievable?

(BTW, i know how to do it with 3 clicks: multi-rename > select preset > enter)
But i need to do it so often i just want a one click solution!)

Thanks!
Last edited by Dazzer on 2023-12-10, 16:58 UTC, edited 1 time in total.
User avatar
Gral
Power Member
Power Member
Posts: 1467
Joined: 2005-01-26, 15:12 UTC

Re: Small macro challenge?!

Post by *Gral »

Configure MRT and save your scheme as e.g. "RemoveFirstSign"
Make button with command
MULTIRENAME==RemoveFirstSign
Dazzer
Junior Member
Junior Member
Posts: 67
Joined: 2016-12-14, 08:35 UTC
Location: Amsterdam

Re: Small macro challenge?!

Post by *Dazzer »

Gral wrote: 2023-12-10, 16:56 UTC Configure MRT and save your scheme as e.g. "RemoveFirstSign"
Make button with command
MULTIRENAME==RemoveFirstSign
Hmmm, i like your style, but it's not working for me!

Are you sure this is correct: MULTIRENAME==MyPresetName
?

When i try it, i get a "file not found" error message.
Last edited by Dazzer on 2023-12-10, 17:06 UTC, edited 1 time in total.
User avatar
Gral
Power Member
Power Member
Posts: 1467
Joined: 2005-01-26, 15:12 UTC

Re: Small macro challenge?!

Post by *Gral »

Yes, i'm sure!
Dazzer
Junior Member
Junior Member
Posts: 67
Joined: 2016-12-14, 08:35 UTC
Location: Amsterdam

Re: Small macro challenge?!

Post by *Dazzer »

Sorry, i edited my post while you were posting, to say:

When i try it, i get a "file not found" error message.
User avatar
Gral
Power Member
Power Member
Posts: 1467
Joined: 2005-01-26, 15:12 UTC

Re: Small macro challenge?!

Post by *Gral »

My settings
rename section of WINCMD.INI

Code: Select all

[rename]
RemoveFirstSign_name=[N2-]
RemoveFirstSign_ext=[E]
RemoveFirstSign_params=0|1|1|1
button

Code: Select all

TOTALCMD#BAR#DATA
MULTIRENAME==RemoveFirstSign

wcmicons.dll


0
-1
P.S. Which version of TC you use?
Dazzer
Junior Member
Junior Member
Posts: 67
Joined: 2016-12-14, 08:35 UTC
Location: Amsterdam

Re: Small macro challenge?!

Post by *Dazzer »

hmmmm, i tried that too, also no dice!

Here's a vid of me in action failing, any ideas?:

https://www.youtube.com/watch?v=xDOvdHBnT3c
User avatar
Gral
Power Member
Power Member
Posts: 1467
Joined: 2005-01-26, 15:12 UTC

Re: Small macro challenge?!

Post by *Gral »

It seems you use old version of TC!
User avatar
Gral
Power Member
Power Member
Posts: 1467
Joined: 2005-01-26, 15:12 UTC

Re: Small macro challenge?!

Post by *Gral »

I'm guessing you're using TC version 9.00 or similar
Dazzer
Junior Member
Junior Member
Posts: 67
Joined: 2016-12-14, 08:35 UTC
Location: Amsterdam

Re: Small macro challenge?!

Post by *Dazzer »

A-ha, that was problem, updated and now it works.

Thanks a bunch!
Post Reply