Search notes:

PowerShell cmdLet convert-path

convert-path returns the (absolute) provider path for a PowerShell path:
PS C:\Users\rene> convert-path .\readme.txt
C:\Users\rene\readme.txt
If the item at which the path to be converted does not exist, convert-path throws an error:
PS C:\Users\rene> remove-item .\readme.txt
PS C:\Users\rene> convert-path .\readme.txt
convert-path : Cannot find path 'C:\Users\rene\readme.txt' because it does not exist.

See also

Powershell command noun: path

Index