> > > 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