PowerShell - Convert-Path and Resolve-Path

To support me, you can subscribe to the channel, share and like the videos, disable your ad blocker or make a donation. Thank you!

Hello,

Convert-Path and Resolve-Path can also enable interesting actions.

Convert-Path converts a Powershell path to a standard path, to be used by a non-Powershell command for example.

Resolve-Path resolves paths containing wildcards

#Convert-Path converts a powershell path to a standard path, to be used by a non-Powershell command for example.
Convert-Path .
Convert-Path HKLM:\Software\Microsoft
Convert-Path ~
#Resolve-Path resolves paths containing wildcards.
Resolve-Path ~
Resolve-Path -Path "C:\windows\*"
# Displays the path relative to the current location
Resolve-Path -Path "c:\prog*" -Relative

Related links