Button bar parameters - %P %T options

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
emanresu1234
Junior Member
Junior Member
Posts: 2
Joined: 2009-11-29, 20:34 UTC

Button bar parameters - %P %T options

Post by *emanresu1234 »

Hello,

The %P and %T command line parameters are not surrounded by quotation marks, so source/target directories with spaces cause problems.

e.g.
A button set up to perform a copy with HoboCopy has parameters which look as follows:

Code: Select all

%P %T %S
The expected generated command line should be:

Code: Select all

HoboCopy.exe "C:\Documents and Settings\User\Local Settings\Temp\" "D:\temp\" filename.tmp
which tells HoboCopy to copy the file filename.tmp from C:\Documents and Settings\User\Local Settings\Temp\ D:\temp\ filename.tmp to D:\temp\

However, due to the source/target directories not being surrounded by quotes, the command that is effectively run is:

Code: Select all

HoboCopy.exe "C:\Documents" "<HoboCopy location dir>\and\" filename.tmp
As you know, wrapping the %P/%T in quotes does not work.

Thanks
User avatar
HolgerK
Power Member
Power Member
Posts: 5406
Joined: 2006-01-26, 22:15 UTC
Location: Europe, Aachen

Re: Button bar parameters - %P %T options

Post by *HolgerK »

emanresu1234 wrote:As you know, wrapping the %P/%T in quotes does not work.
Hmmh.
"%P" "%T" %S
works here as expected.

Regards
Holger
emanresu1234
Junior Member
Junior Member
Posts: 2
Joined: 2009-11-29, 20:34 UTC

You're right...

Post by *emanresu1234 »

My bad...it turns out the actual problem lies with HoboCopy itself...

(Actually, more the way parameters pass through argv. It's the trailing '\' on %p and %T that causes the problem. Adding an extra '\' to the end fixes the problem.

e.g. "%P\" "%T\" %s works...


Apologies for time wasted.

Thanks
Post Reply