Hi,
I recently made a custom button to convert the file under cursor to JPG using IrfanView. The details of the button are the following:
Command:[face=courier] "C:\Program Files (x86)\IrfanView\i_view32.exe"[/face]
Paramters: [face=courier]%P%N /convert="%P%O.jpg"[/face]
I think it works OK. However, at first I had [face=courier]"%P%N" /convert="%P%O.jpg"[/face] (notice the quotes in [face=courier]"%P%N"[/face]), and later found out that [face=courier]%P%N[/face] automatically adds quotes when needed, but not [face=courier]%P%O[/face], so I had to keep the quotes there.
Is this behavior documented somewhere? All the help file says is that [face=courier]%P%S[/face] adds quotes automatically, but that one works on all selected files, not just the file under the cursor. Do any other parameters behave the same way? I also noticed that [face=courier]%N[/face] and [face=courier]%P[/face] don't add quotes when they're alone by themselves, only when they're together. Is this true?
Thanks.
Buttons: which params (%N, ...) add quotes automatically?
Moderators: Hacker, petermad, Stefan2, white
To avoid automatic quoting just use instead of %P%N. It can be quite annoying.
Code: Select all
"%P%O.%E"
it works as design.. you can give a look to TC help Clo!. (search for quote or guillemot)d125q wrote:That's a rather nice workaround to force quoting, but I'd still appreciate an answer to my original questions (which parameters--and when exactly--exhibit this behavior?).
Cheers.
Thanks. This is a great article.nsp wrote:it works as design.. you can give a look to TC help Clo!. (search for quote or guillemot)