Quantcast
Channel: Total Commander
Viewing all articles
Browse latest Browse all 3808

TC Behaviour which will not be changed • Re: %O parameter doesn't quote filenames with spaces

$
0
0
Wrong :!:
%O = My Book Report

You just have a default behaviour that another program that gets My Book Report split it by spaces if you dont use quotes :!:
You mean virtually every Windows program in existence?

While there may be some programs that will accept a filename with spaces in it that isn't quoted, the vast majority will interpret space as a delimiter and stop reading a filename there. Can you name a common Windows program that accepts filenames on the command line, which doesn't need filenames with spaces to be enclosed in quotes?
TC does not add quotes around most parameters like %O because they are often combined with others, e.g. the user could write %O_copy.%E or so.
Quotes are added for %N, %P%%N, %T, %T%M and a few others. User %Q at the start to turn off automatic quotes.
Currently it's not planned to add automatic quotes to more placeholders, sorry.
Thank you for the explanation. May I respectfully suggest that the help file should make it clear which parameters will be enclosed in quotes and which won't be? I'm not suggesting that it be stated in the description for each and every parameter, maybe just a note at the top like "Please note, only the following parameters will be enclosed in quotes if they contains spaces, all others you will have to enclose in quotes yourself: %N, %P%N, %T, %T%M..."

Statistics: Posted by Rekrul — 2024-01-24, 00:37 UTC



Viewing all articles
Browse latest Browse all 3808

Trending Articles