Combines a path and a child path for an IIS website, application, virtual directory into a single path.
Join-IisVirtualPath [-Path] <String> [[-ChildPath] <String>] [<CommonParameters>]
Removes extra slashes. Converts backward slashes to forward slashes. Relative portions are not removed. Sorry.
Beginning with Carbon 2.0.1, this function is available only if IIS is installed.
Name | Type | Description | Required? | Pipeline Input | Default Value |
---|---|---|---|---|---|
Path | String | The parent path. |
true | false | |
ChildPath | String | false | false |
Join-IisVirtualPath 'SiteName' 'Virtual/Path'
Demonstrates how to join two IIS paths together. REturns SiteName/Virtual/Path
.