Rename with parameters

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
MyStar
Junior Member
Junior Member
Posts: 5
Joined: 2008-10-07, 15:50 UTC

Rename with parameters

Post by *MyStar »

Long time ago I was searching for a method to rename a file which was selected by clicking on it. Found the solution in this forum,
by creating a button with the command:

%ComSpec% /c ren

and as parameter:

%N "Folder.jpg"

Worked perfectly, I could rename the selected file (like filename.jpg) to folder.jpg

I don't know why this has stopped working, the only thing that has changed recently that I have a new PC with Windows 11 installed.
I was before always running Windows 10.

What is here the matter?
User avatar
white
Power Member
Power Member
Posts: 5747
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: Rename with parameters

Post by *white »

MyStar wrote: 2024-11-17, 16:20 UTC What is here the matter?
Perhaps a typo. Right-click your button an choose copy. Then paste the contents of the clipboard here on the forum, preferably in a code block (click the </> button). Then we can check.

In recent versions of TC you can use the internal cm_RenMov command. Copy the code below to your clipboard, then right-click an empty space on your button bar in TC and choose Paste.

Code: Select all

TOTALCMD#BAR#DATA
cm_RenMov
/GT="Folder.jpg"
wcmicons.dll,63



-1
MyStar
Junior Member
Junior Member
Posts: 5
Joined: 2008-10-07, 15:50 UTC

Re: Rename with parameters

Post by *MyStar »

Thanks White, this works fine !
Post Reply