Documents
special folder (aka my documents) is different from the MyDocuments virtual folder which appears under the Desktop virtual folder in the Windows Shell Namespace. [environment]::getFolderPath('mydocuments')
C:\users\username\Documents
which, IMHO, takes some getting used to: > path.expand('~') [1] "C:/Users/Rene/Documents"
curDir()
seems to return this directory path by default. System.Environment+SpecialFolder
. set-locationDocuments
function of the PowerShell module filesystem
.