November 2018
Intermediate to advanced
566 pages
17h 15m
English
Let us get right to it!
Say we would like to get the list of files and directories within the current directory:
PS> Get-ChildItem -Path .
PS> gci
We would use the former way when including the cmdlet in a script. This avoids ambiguity in most contexts that the script would run in. This usually means minimal bugs. The latter, on the other hand, is the short way of running the same cmdlet, by leveraging the user-friendly features of it, combined with the awareness of the environment as an intelligent human. This approach significantly reduces keystrokes—three characters, ...
Read now
Unlock full access