Private/Get-RaidinessDefaultRunPath.ps1
|
function Get-RaidinessDefaultRunPath { [CmdletBinding()] [OutputType([string])] param() $documents = [Environment]::GetFolderPath('MyDocuments') if (-not $documents) { # Some non-Windows hosts do not register the special Documents folder. # Keep a predictable per-user fallback rather than returning to the # potentially protected process working directory. $documents = Join-Path ([Environment]::GetFolderPath('UserProfile')) 'Documents' } Join-Path $documents 'Raidiness' } |