W
W
WebDiez2019-10-31 16:55:39
PowerShell
WebDiez, 2019-10-31 16:55:39

Powershell: Relative address to absolute?

$path1 = C:/1/2/3/
$parth2 = ../../base/
=====
$result = C:/1/base/

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
MaxKozlov, 2019-10-31
@webdiez

If paths exist
(Resolve-Path (Join-Path $path1 $path2)).Path

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question