PowerShell Logo Small

Convert-Path



This is the built-in help made by Microsoft for the command 'Convert-Path', in PowerShell version 4 - as retrieved from Windows version 'Microsoft Windows 8.1 Enterprise' 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[]> [-UseTransaction [<SwitchParameter>]] [<CommonParameters>]
Convert-Path -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.