Buttonbar Parameters %P%N - Problem
Moderators: Hacker, petermad, Stefan2, white
Buttonbar Parameters %P%N - Problem
Using Directory T:\T T\File.name
? /c /s "K:\My Config\Script.vcf" /p %P%N %PNew.name /r /x
produces
/c /s "K:\My Config\Script.vcf" /p "T:\T T\File.name" T:\T T\New.name /r /x
The Problem is that %P%N produces an expression with "" but %PNew.name produces a expression without ""
I expect this should be same behaviour (but which one ?)
Cheers Sascha
? /c /s "K:\My Config\Script.vcf" /p %P%N %PNew.name /r /x
produces
/c /s "K:\My Config\Script.vcf" /p "T:\T T\File.name" T:\T T\New.name /r /x
The Problem is that %P%N produces an expression with "" but %PNew.name produces a expression without ""
I expect this should be same behaviour (but which one ?)
Cheers Sascha
Well it's by design exactly for this case. %P with quotes wouldn't work, since you would get
and %P%N is with quotes so you don't have to add any. Hence the solution simply is to use
HTH
Roman
Code: Select all
"T:\T T\"New.name
Code: Select all
"%PNew.name"
Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
This is very unspecific behaviour !
Due to my opinion ...
Either nowhere "" or "" on the right places everywhere
I understand that current implementation will make it eventaully difficult for solution 2. But this mixture is not very comfortable.
What do others think ?
IMO
Sascha
Either nowhere "" or "" on the right places everywhere

I understand that current implementation will make it eventaully difficult for solution 2. But this mixture is not very comfortable.
What do others think ?
IMO
Sascha
- sqa_wizard
- Power Member
- Posts: 3893
- Joined: 2003-02-06, 11:41 UTC
- Location: Germany
The way it works right now is the only way it works. 
If you enter a file with a space in the name:
What should TC do ?
Cast it as program call with parameter like:
or
Cast it as full program call:
You are the only one who knows which is the intended version to use... so you have to put quotes at the correct position yourself.

If you enter a file with a space in the name:
Code: Select all
%PMy.Fine New.name
Cast it as program call with parameter like:
Code: Select all
"%PMy.Fine" New.name
Cast it as full program call:
Code: Select all
"%PMy.Fine New.name"
#5767 Personal license
- ghisler(Author)
- Site Admin
- Posts: 50386
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Just put "" yourself where you need them. If you put "%P%N" with "" then TC will not add its own!
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com