--- In [EMAIL PROTECTED], Alex Peters <[EMAIL PROTECTED]> wrote:
> --- Sean wrote:
>
> > I have an item in the ContextFolder command list:
> > do(".../totalcmd.exe",?'"||"'++" "++?'"|"')
> > which is supposed to open the parent folder in the left pane and
the
> > folder in the right pane. But, it works only for left pane. Well,
I
> > can work around for it to work as expected, however, is there any
> > reason to allow _FILE_ only once in it?
>
> Perhaps this will work for you (all one line):
>
> Do(".../TotalCmd.exe", ?'"' ++ File.Folder(_File_) ++ ?'" "' ++
_File_
> ++ ?'"')
>
> Because _File_ contains the path to a folder already, File.Folder()
> might return the same string (I haven't tested it). If this is the
> case, it is possible to use the following code:
>
> Local Folder = Select(_File_, RevIndex(_File_, ?"\") - 1)
> Do(".../TotalCmd.exe", ?'"' ++ Folder ++ ?'" "' ++ _File_ ++ ?'"')
>
> This of course assumes that _File_ does not end in a backslash, in
> which case we would need this code:
>
> Local Folder = Remove(_File_, -1)
> Local Folder = Select(_File_, RevIndex(_File_, ?"\") - 1)
> Do(".../TotalCmd.exe", ?'"' ++ Folder ++ ?'" "' ++ _File_ ++ ?'"')
I'm now using
do(".../totalcmd.exe",?'"||"'++" "++?'"'++_file_++?'"')
Sean
------------------------ 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/