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?
Rename with parameters
Moderators: Hacker, petermad, Stefan2, white
Re: Rename with parameters
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
Re: Rename with parameters
Thanks White, this works fine !