Contact Info

Crumbtrail

ActiveXperts.com » Administration » Powershell » Powershell 1.0 » Convert-Path

Convert-Path - Powershell 1.0 CmdLet

ActiveXperts Network Monitor ships with integrated Powershell scripts to monitor complex network. The scripts run out of the box
Download the ActiveXperts Network Monitor FREE version now »

Convert-Path

Description
Convert a ps path to a provider path

Usage
Convert-Path [-path] string[] [CommonParameters]

      Convert-Path [-literalPath] string[] [CommonParameters]

Options
-Path path      The path to be converted

   -literalPath string
        The path to be converted. The value of -LiteralPath is used exactly
        as typed. No characters are interpreted as wildcards.
        If the path includes escape characters, enclose them in single quotes. 
        
   CommonParameters
        The common parameters: -Verbose, -Debug,-ErrorAction, -ErrorVariable, -OutVariable.

Example(s)
Expand the current working directory:

PS C:\>convert-path ~

Convert a powershell provider path to a standard registry path:

PS C:\>convert-path HKLM:\software\microsoft
HKEY_LOCAL_MACHINE\SOFTWARE\MICROSOFT