PowerShell_Scripts/base/profile.d/PathProcessingFunctions.ps1...

5 lines
135 B
PowerShell

function Get-ShellSafePath { param([string]$LiteralPath)
"`"$([Management.Automation.WildcardPattern]::Escape($LiteralPath))`""
}