PowerShell Logo Small

Convert-Path



This is the built-in help made by Microsoft for the command 'Convert-Path', in PowerShell version 5 - as retrieved from Windows version 'Microsoft Windows Server 2012 R2 Standard' PowerShell help files on 2016-06-23.

For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.

SYNOPSIS

Converts a path from a Windows PowerShell path to a Windows PowerShell provider path.

SYNTAX


Convert-Path [-Path] <String[]> [-InformationAction {SilentlyContinue | Stop | Continue | Inquire | Ignore | Suspend}] [-InformationVariable [<System.String>]]
[-UseTransaction [<SwitchParameter>]] [<CommonParameters>]
Convert-Path [-InformationAction {SilentlyContinue | Stop | Continue | Inquire | Ignore | Suspend}] [-InformationVariable [<System.String>]] -LiteralPath <String[]>
[-UseTransaction [<SwitchParameter>]] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Convert-Path cmdlet converts a path from a Windows PowerShell path to a Windows PowerShell provider path.



<

RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/p/?linkid=290482
Join-Path
Resolve-Path
Split-Path
Test-Path
about_Providers

REMARKS

<

Examples


-------------------------- EXAMPLE 1 --------------------------

PS C:\>convert-path .



This command converts the current working directory, which is represented by a dot (.), to a standard file system path.










-------------------------- EXAMPLE 2 --------------------------

PS C:\>convert-path HKLM:\software\microsoft



This command converts the Windows PowerShell provider path to a standard registry path.










-------------------------- EXAMPLE 3 --------------------------

PS C:\>convert-path ~
C:\Users\User01



This command converts the path to the home directory of the current provider, which is the FileSystem provider, to a string.