"Flash Renamer" tool: Integration via an Button?

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
drbeat
Junior Member
Junior Member
Posts: 57
Joined: 2017-01-01, 01:13 UTC

"Flash Renamer" tool: Integration via an Button?

Post by *drbeat »

I want to create a button that sends selected folders to Flash Renamer. "%P%S" send folders to Flash Renamer however a selection dialog appears. I don't want to see that dialog. Flash Renamer supports several commands below. How can I send selected folders without seeing that dialog?

I have tried /p /d /s "%P%S" as button argument but it didn't work.

Command Line Arguments:
https://www.rlvision.com/flashren/manual/appendix_command_line.html
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48023
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Flash Renamer Button Integration

Post by *ghisler(Author) »

TC doesn't show any dialog, except when you put "?" at the start of the parameters. Therefore the dialog must be coming from Flash Renamer. Please ask the author of that tool how to get rid of the dialog.
Author of Total Commander
https://www.ghisler.com
User avatar
Stefan2
Power Member
Power Member
Posts: 4133
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: Flash Renamer Button Integration

Post by *Stefan2 »

2drbeat


1. Use the right command line order: FlashRen.exe /p c:\download\*.* /r "my preset" /f

2. FlashRenamer wants one single folder as argument, not folderS.
/p - Sets the startup path

try: /p "%P%N" /s /f
with an selected folder
-or-
try: /p "%P" /s /f
for the current "open" folder



 
drbeat
Junior Member
Junior Member
Posts: 57
Joined: 2017-01-01, 01:13 UTC

Re: Flash Renamer Button Integration

Post by *drbeat »

Thank you Stefan2.
Multiple folder could be achieved via Free Select mode. Is there any way to do this?

/l - Allows you to specify a text file containing files and folders (full paths, one file or folder per line). The files and folders will be loaded into the Free Select mode.
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6450
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Flash Renamer Button Integration

Post by *Horst.Epp »

drbeat wrote: 2019-01-09, 17:35 UTC Thank you Stefan2.
Multiple folder could be achieved via Free Select mode. Is there any way to do this?

/l - Allows you to specify a text file containing files and folders (full paths, one file or folder per line). The files and folders will be loaded into the Free Select mode.
What about using the help button while setting up a button in TC. :)
You will find:
%L, %l, %F, %f, %D, %d, %WL, %WF, %UL, %UF
create a list file in the TEMP directory with the names of the selected files and directories, and appends the name of the list file to the command line. The list is deleted automatically when the called program quits. Only one list per command is supported. 10 types of list files can be created:

So please read the help first and then ask if something is not clear or working.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3374)
TC 11.03 x64 / x86
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.69
QAP 11.6.3.2 x64
drbeat
Junior Member
Junior Member
Posts: 57
Joined: 2017-01-01, 01:13 UTC

Re: Flash Renamer Button Integration

Post by *drbeat »

%L creates different file name in temp directory (like CMDxx.tmp) each time. So how can I create fixed file name in temp dir to use /l
User avatar
Stefan2
Power Member
Power Member
Posts: 4133
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: Flash Renamer Button Integration

Post by *Stefan2 »

FlashRenamer Help:
/l - Allows you to specify a text file containing files and folders (full paths, one file or folder per line).
The files and folders will be loaded into the Free Select mode.

TC Help:
%L, ... create a list file

- - -

So try:
FlashRen.exe
/l "%L"

(case sensitive)

But that is for to adding several files or folders, not folder content, as far as I see.

- - -

And it doesn't work with TC just out of the box
because TC adds a trailing backslash behind each path which FR doesn't understand.
Try with an own text file with one path per line
and this TC parameter
/l "%P%N"
while you have selected your own text file.


You would need a script to modify the file behind %L to remove trailing backslashes and next pass that modified file to FR.
--- TC parameter: myScript.ext "%L"
--- myScript.ext content: For each line remove '\' AND write to Temp\x.ext AND run FR.exe /l Temp\x.ext


- - -

Perhaps (you didn't tell what you want to achieve) you can use FlashRen.exe /l "%L"
with an selection after Commands\Branch View -or- after a search and [Add to listbox]



 
drbeat
Junior Member
Junior Member
Posts: 57
Joined: 2017-01-01, 01:13 UTC

Re: Flash Renamer Button Integration

Post by *drbeat »

You're right Flash Renamer doesn't understand trailing backslashes and that ruins everything. Thanks lot Stefan2 for taking time and test it.
Last edited by drbeat on 2019-01-09, 19:32 UTC, edited 1 time in total.
User avatar
Stefan2
Power Member
Power Member
Posts: 4133
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: Flash Renamer Button Integration

Post by *Stefan2 »

drbeat wrote: 2019-01-09, 19:15 UTC how to specify my file

Sorry, I don't understand.



 
drbeat
Junior Member
Junior Member
Posts: 57
Joined: 2017-01-01, 01:13 UTC

Re: Flash Renamer Button Integration

Post by *drbeat »

Stefan2 wrote: 2019-01-09, 19:31 UTC
drbeat wrote: 2019-01-09, 19:15 UTC how to specify my file

Sorry, I don't understand.



 
Okay, I've just understand. Selecting my text file via /l "%P%N" sends that file list to Flash Renamer.
Post Reply