ZTree.com  | ZEN  | About...  

 Index   Back

powershell and the application menu   [Help!]

By: Ben Kent       
Date: Dec 19,2019 at 01:26
In Response to: [Help!] Batch on tagged files (Slobodan Vujnovic)

> > > Thought about this but I need
> a mix of %1 and %4 in the subroutine.
> > > How can I do this?
> >
> > In that section you don't have the numbered ZTree % expanders.
> > But you can use the shell ones
> > %4 is equivalent to %%~n1
> > Ben
>
> I often type SET /? and CALL /? in CMD to remind myself of the features
> dealing with the parameters - extraction, substitution, expansion...
> This ancient batch language is exotic, but very powerful when
> you learn it.
>


Slobodan
> I wonder if anybody is using PowerShell with ZTreeWin scripting?

Laurent is see https://www.ztw3.com/forum/forum_entry.php?id=122509

You can use the hybrid script method documented in that post.

But having a new Directive that tells ZTree to use powershell instead of cmd would be good.

i.e. something like
----
# #ZTPowershell
Get-ChildItem %1
----

Ben

145 views      
 

Messages in this Thread

 
94,800 Postings in 11,952 Threads, 348 registered users, 11 users online (1 registered, 10 guests)
Index | Admin contact |   Forum Time: Mar 31, 2020 - 5:32 pm EDT  |  Hits:30,519,891  (4,122 Today )
RSS Feed