--- acs322000 wrote:

> In my ContextFolder list, if I assign
> do(?"%ProgramFiles%\totalcmd\totalcmd.exe",_file_) 
> total commander does NOT open the folder, while if I assign
> do(?"%ProgramFiles%\totalcmd\totalcmd.exe","\""++_file_++"\"")
> it does.
> Why do I need to quote _file_ ? It seems to me I shouldn't need to
> quote it, since it's a variable.
> btw, _file_ has embedded spaces in it.

You are required to quote _File_ in this instance because Total
Commander wants you to provide it a path surrounded in quotes.

Assuming a path of C:\My Path,
Do(?"%ProgramFiles%\TotalCmd\TotalCmd.exe", _File_)

would send
%ProgramFiles%\TotalCmd\TotalCmd.exe C:\My Path

whereas
Do(?"%ProgramFiles%\TotalCmd\TotalCmd.exe", "\"" ++ _File_ ++ "\"")

would send
%ProgramFiles%\TotalCmd\TotalCmd.exe "C:\My Path"

The double quotes are not included in _File_ because there are cases
where this would be undesirable; this is why it is up to the user to
include double quotes if required.

-- 

Alex Peters / Melbourne, Australia
PowerPro v3.8.21 / Windows XP



------------------------ Yahoo! Groups Sponsor --------------------~--> 
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/JV_rlB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/power-pro/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

Reply via email to