November 2018
Intermediate to advanced
566 pages
17h 15m
English
The current location, or the present working directory, can be gotten in different ways:
Also, there is an automatic variable called $PSCommandPath, which stores the location of a script being executed. Again, if you call this variable at the terminal, it will not give you any value.
When creating paths, in order to eliminate possibilities of errors in resolution, it is best to use the Join-Path cmdlet, with the necessary arguments. Based on the system the script is being run on, Join-Path will use the right path ...
Read now
Unlock full access