ZTree.com  | ZEN  | About...  

 Index   Back

Application menu workaround   [ZEP]

By: Ben Kent       
Date: Sep 29,2015 at 07:32
In Response to: Application menu workaround (Peter Shute)

> > > That works nicely, thanks. So the script is now:
> > > rem #ztset str1 String 1:
> > > rem #ztset str2 String 2:
> > > Start "" "C:\Program Files\ZTreeWin\ZTW.EXE"
> > > *%%str1%%*%%str2%%*.* *%%str2%%*%%str1%%*.*
> >
> > There is no need to double percent here, use Alt-View to confirm.
>
Whoops, I was forgetting about those single letter expansions, Upper case your variables, or double percent.

> I tried single percents, and it expanded the %s out to the number of
> bytes logged. I should have chosen variable names that didn't start with
> s.
>
> > > Is there any way to get the second instance to start with a ztree
> > icon
> > > in the taskbar? For me it's showing as a cmd .exe icon.
> >
> > Start the shortcut that has the required icon
> >
> > start "" "C:\...\ZTree Windows.lnk" "*%str1%*%str2%*.*"
> > "*%str2%*%str1%*.*"
>
> Same result for me. I tried it with the shortcut on the desktop, I
> haven't got one in my ztree dir.
>
> If I use the Open command to open C:\Program Files\ZTreeWin\ZTW.EXE
> directly, it gets the Ztree icon. What's it doing differently?
>
> I'm not that fussed, I'll probably never use this script myself. Just
> curious.

Working for me on the command line, or from an F9 item, this commandline from inside of ZTree

start "" "%#ZTStartMenu%\Programs\_Accessories\ZTW64.lnk"

I have used that technique from outside of ZTree for years to make the ZTree have the required icon, instead of the cmd one, as I launch from cmd script.

Not sure why it's not working for you.
Have you tried selecting one of the .ico files?
Is your shortcut launching the ZTree exe or a cmd script?

Ben

893 views      
Thread locked
 

Messages in this Thread

 
96,637 Postings in 12,231 Threads, 350 registered users, 62 users online (0 registered, 62 guests)
Index | Admin contact |   Forum Time: Mar 28, 2024 - 11:04 am UTC  |  Hits:62,364,349  (16,746 Today )
RSS Feed