ConvertTo-FullPath

Converts a relative path to an absolute path.

Syntax

ConvertTo-FullPath [-Path] <String> [<CommonParameters>]

Description

Unlike Resolve-Path, this function does not check whether the path exists. It just converts relative paths to absolute paths.

You can't pass truly relative paths to this function. You can only pass rooted paths, i.e. the path must have a drive at the beginning.

Parameters

Name Type Description Required? Pipeline Input Default Value
Path String The path to resolve. Must be rooted, i.e. have a drive at the beginning. true false

EXAMPLE 1

ConvertTo-FullPath -Path 'C:\Projects\Carbon\Test\..\Carbon\FileSystem.ps1'

Returns C:\Projects\Carbon\Carbon\FileSystem.ps1.

EXAMPLE 2

ConvertTo-FullPath -Path 'C:\Projects\Carbon\..\I\Do\Not\Exist'

Returns C:\Projects\I\Do\Not\Exist.