PowerShell Logo Small

Resolve-Path



This is the built-in help made by Microsoft for the command 'Resolve-Path', in PowerShell version 2 - as retrieved from Windows version 'Microsoft® Windows Vista™ Ultimate ' 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

Resolves the wildcard characters in a path, and displays the path contents.

SYNTAX


Resolve-Path [-LiteralPath] <string[]> [-Credential <PSCredential>] [-Relative] [-UseTransaction] [<CommonParameters>]
Resolve-Path [-Path] <string[]> [-Credential <PSCredential>] [-Relative] [-UseTransaction] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Resolve-Path cmdlet interprets the wildcard characters in a path and displays the items and containers at the location specified by the path,
such as the files and folders or registry keys and subkeys.



<

RELATED LINKS

Online version: http://go.microsoft.com/fwlink/?LinkID=113384
about_Providers
Test-Path
Split-Path
Convert-Path
Join-Path

REMARKS

<

Examples


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

C:\PS>resolve-path ~

C:\Users\User01



Description
-----------
This command resolves the path represented by the tilde character (~), which signifies the home path.








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

C:\PS>resolve-path windows

C:\Windows



Description
-----------
When run from the root of the C: drive, this command returns the path to the Windows directory in the C: drive.








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

C:\PS>"C:\windows\*" | resolve-path



Description
-----------
This command returns all of the directories in the C:\Windows directory. The command uses a pipeline operator (|) to send a path string to Resolv
e-Path.








-------------------------- EXAMPLE 4 --------------------------

C:\PS>resolve-path \\Server01\public



Description
-----------
This command resolves a Universal Naming Convention (UNC) path and returns the shares in the path.








-------------------------- EXAMPLE 5 --------------------------

C:\PS>resolve-path c:\prog* -relative

..\Program Files
..\Program Files (x86)
..\programs.txt



Description
-----------
This command returns relative paths for the directories at the root of the C: drive.








-------------------------- EXAMPLE 6 --------------------------

C:\PS>resolve-path -literalPath test[xml]



Description
-----------
This command resolves the path to the Test[xml] subdirectory of the current directory. It uses the LiteralPath parameter to indicate that the bra
ckets are not regular expression characters.