Skip to content

Commit 394fe98

Browse files
(AB-568561) [switch] parameter in Management
1 parent 221632a commit 394fe98

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

reference/7.4/Microsoft.PowerShell.Management/Resolve-Path.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@ Resolve-Path -LiteralPath 'test[xml]'
113113
### Example 7: Resolve a path relative to another folder
114114

115115
This 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
211211
Specifies a path to resolve the relative path from. When you use this parameter, the cmdlet returns
212212
the **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
215215
representing the relative path from **RelativeBasePath** to **Path**.
216216
217217
This parameter was added in PowerShell 7.4.

reference/7.5/Microsoft.PowerShell.Management/Resolve-Path.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@ Resolve-Path -LiteralPath 'test[xml]'
113113
### Example 7: Resolve a path relative to another folder
114114

115115
This 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
266266
Specifies a path to resolve the relative path from. When you use this parameter, the cmdlet returns
267267
the **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
270270
representing the relative path from **RelativeBasePath** to **Path**.
271271
272272
This parameter was added in PowerShell 7.4.

reference/7.6/Microsoft.PowerShell.Management/Resolve-Path.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@ Resolve-Path -LiteralPath 'test[xml]'
113113
### Example 7: Resolve a path relative to another folder
114114

115115
This 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
266266
Specifies a path to resolve the relative path from. When you use this parameter, the cmdlet returns
267267
the **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
270270
representing the relative path from **RelativeBasePath** to **Path**.
271271
272272
This parameter was added in PowerShell 7.4.

0 commit comments

Comments
 (0)