< Back

Resolve-CPathCase

Sun Jan 12, 2020 11:00 pm

NAME Resolve-CPathCase



SYNOPSIS

Returns the real, canonical case of a path.





SYNTAX

Resolve-CPathCase [-Path] <String> [<CommonParameters>]





DESCRIPTION

The .NET and Windows path/file system APIs respect and preserve the case of paths passed to them. This function

will return the actual case of a path on the file system, regardless of the case of the string passed in.



If the path doesn't an exist, an error is written and nothing is returned.





PARAMETERS

-Path <String>

The path whose real, canonical case should be returned.



Required? true

Position? 1

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



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



PS C:\\>Resolve-CPathCase -Path "C:\\WINDOWS\\SYSTEM32"



Returns `C:\\Windows\\system32`.









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



PS C:\\>Resolve-CPathCase -Path 'c:\\projects\\carbon'



Returns `C:\\Projects\\Carbon`.











RELATED LINKS