Since the correction of the original parameter was refused, I proposed a new parameter that will do what is needed without having to handle each parameter individually.
There are two simple solutions:
- %q will have two states, toggling double quote suppression:
%N = "name 1.ext"
%A1 = "any text 1"
%A2 = "any text 2"
%|$CLIPNAME_NE1| = get "this" text
prog.exe /switch1 "%q-par1='%N' -par2='%A1'%q" /switch2 "%q-par3='%A2' -par4='%|$CLIPNAME_NE1|'%q"
This entry will give the following result:Code: Select all
prog.exe /switch1 "-par1='name 1.ext' -par2='any text 1'" /switch2 "-par3='any text 2' -par4='get this text'" - There will be one parameter, and the boundaries of the suppression area will be some symbol prohibited in names, for example a slash.
The same result will be given by such an entry:
prog.exe /switch1 "%q/-par1='%N' -par2='%A1'/" /switch2 "%q/-par3='%A2' -par4='%|$CLIPNAME_NE1|'/"

