alias - Multiple values for a powershell alais -


i want create alias display home directory , of it's sub-directories.

the alias can create is- new-alias -name myd -value get-childitem

but need display both home directory , sub directories using 1 command. can assign multiple values alias?

you should create function , that:

function  myd {get-childitem -recurse } 

then alias if wish:

new-alias -name myname -value myd 

you can directly call "myd" also.


Comments

Popular posts from this blog

Sort a complex associative array in PHP -

vb.net - How to ignore if a cell is empty nothing -

recursion - Can every recursive algorithm be improved with dynamic programming? -