File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed
7.4/Microsoft.PowerShell.Management
7.5/Microsoft.PowerShell.Management
7.6/Microsoft.PowerShell.Management Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -113,8 +113,8 @@ Resolve-Path -LiteralPath 'test[xml]'
113113### Example 7: Resolve a path relative to another folder
114114
115115This example uses the ** RelativeBasePath** parameter to resolve the path of the ` pwsh ` executable
116- relative to ` $Env:TEMP ` . When the command includes the ** Relative** switch parameter, it returns a
117- ** String** representing the relative path from ` $Env:TEMP ` to the ` pwsh ` executable.
116+ relative to ` $Env:TEMP ` . When the command includes the ** Relative** ` [ switch] ` parameter, it
117+ returns a ** String** representing the relative path from ` $Env:TEMP ` to the ` pwsh ` executable.
118118
119119``` powershell
120120$ExecutablePath = Get-Command -Name pwsh | Select-Object -ExpandProperty Source
@@ -211,7 +211,7 @@ Accept wildcard characters: False
211211Specifies a path to resolve the relative path from. When you use this parameter, the cmdlet returns
212212the **System.Management.Automation.PathInfo** object for the resolved path.
213213
214- When you use this parameter with the **Relative** switch parameter, the cmdlet returns a string
214+ When you use this parameter with the **Relative** `[ switch]` parameter, the cmdlet returns a string
215215representing the relative path from **RelativeBasePath** to **Path**.
216216
217217This parameter was added in PowerShell 7.4.
Original file line number Diff line number Diff line change @@ -113,8 +113,8 @@ Resolve-Path -LiteralPath 'test[xml]'
113113### Example 7: Resolve a path relative to another folder
114114
115115This example uses the ** RelativeBasePath** parameter to resolve the path of the ` pwsh ` executable
116- relative to ` $Env:TEMP ` . When the command includes the ** Relative** switch parameter, it returns a
117- ** String** representing the relative path from ` $Env:TEMP ` to the ` pwsh ` executable.
116+ relative to ` $Env:TEMP ` . When the command includes the ** Relative** ` [ switch] ` parameter, it
117+ returns a ** String** representing the relative path from ` $Env:TEMP ` to the ` pwsh ` executable.
118118
119119``` powershell
120120$ExecutablePath = Get-Command -Name pwsh | Select-Object -ExpandProperty Source
@@ -266,7 +266,7 @@ Accept wildcard characters: False
266266Specifies a path to resolve the relative path from. When you use this parameter, the cmdlet returns
267267the **System.Management.Automation.PathInfo** object for the resolved path.
268268
269- When you use this parameter with the **Relative** switch parameter, the cmdlet returns a string
269+ When you use this parameter with the **Relative** `[ switch]` parameter, the cmdlet returns a string
270270representing the relative path from **RelativeBasePath** to **Path**.
271271
272272This parameter was added in PowerShell 7.4.
Original file line number Diff line number Diff line change @@ -113,8 +113,8 @@ Resolve-Path -LiteralPath 'test[xml]'
113113### Example 7: Resolve a path relative to another folder
114114
115115This example uses the ** RelativeBasePath** parameter to resolve the path of the ` pwsh ` executable
116- relative to ` $Env:TEMP ` . When the command includes the ** Relative** switch parameter, it returns a
117- ** String** representing the relative path from ` $Env:TEMP ` to the ` pwsh ` executable.
116+ relative to ` $Env:TEMP ` . When the command includes the ** Relative** ` [ switch] ` parameter, it
117+ returns a ** String** representing the relative path from ` $Env:TEMP ` to the ` pwsh ` executable.
118118
119119``` powershell
120120$ExecutablePath = Get-Command -Name pwsh | Select-Object -ExpandProperty Source
@@ -266,7 +266,7 @@ Accept wildcard characters: False
266266Specifies a path to resolve the relative path from. When you use this parameter, the cmdlet returns
267267the **System.Management.Automation.PathInfo** object for the resolved path.
268268
269- When you use this parameter with the **Relative** switch parameter, the cmdlet returns a string
269+ When you use this parameter with the **Relative** `[ switch]` parameter, the cmdlet returns a string
270270representing the relative path from **RelativeBasePath** to **Path**.
271271
272272This parameter was added in PowerShell 7.4.
You can’t perform that action at this time.
0 commit comments