Answer the question
In order to leave comments, you need to log in
Where to store shortcards for powershell?
I want to implement an analogue of alias from Linux in the Windows console. What is the best way to do this? I'm thinking of writing small scripts in Powershell, but the problem is that it's not clear where to put them so that they run without specifying the path.
Answer the question
In order to leave comments, you need to log in
%windir%\system32\WindowsPowerShell\v1.0\ps.ps1
or
$env:Path += ";C:\your scripts folder"
write a bunch of functions, hammer them into your powershell profile or load them from a file into the profile via dot-source and you can also set convenient names for them via set-alias.
and you can stir up aliases on pure cmd: https://stackoverflow.com/questions/20530996/alias...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question