ZTree.com  | ZEN  | About...  

 Index   Back

powershell and the application menu   [Help!]

By: Ben Kent       
Date: Dec 19,2019 at 06: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

1,002 views      
Thread locked
 

Messages in this Thread

 
96,640 Postings in 12,231 Threads, 350 registered users, 57 users online (0 registered, 57 guests)
Index | Admin contact |   Forum Time: Apr 19, 2024 - 2:53 am UTC  |  Hits:62,920,027  (1,207 Today )
RSS Feed