Page 1 of 1
Buttonbar Parameters %P%N - Problem
Posted: 2006-11-16, 22:25 UTC
by SKolb
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
Posted: 2006-11-16, 22:30 UTC
by Hacker
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
Posted: 2006-11-16, 22:32 UTC
by Hacker
Moderator message
Moved to TC 7 discussion forum.
Hacker (Moderator)
This is very unspecific behaviour !
Posted: 2006-11-17, 07:38 UTC
by SKolb
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
Posted: 2006-11-19, 21:14 UTC
by sqa_wizard
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.
Posted: 2006-11-19, 23:45 UTC
by ghisler(Author)
Just put "" yourself where you need them. If you put "%P%N" with "" then TC will not add its own!