Skip to content

Commit

Permalink
typos
Browse files Browse the repository at this point in the history
  • Loading branch information
SamErde committed Dec 9, 2024
1 parent 0ced241 commit 9c9fcdf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _posts/2024-12-09-Revisiting-Join-Path-in-PowerShell.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Join-Path

You may not have realized that it supports wildcards in the parent and child paths, and can return an array of strings that represent paths.
```powershell
Join-Path -Path "$Home\AppData\Local*" -ChildPath "Microsoft*" -Resolve"
Join-Path -Path "$Home\AppData\Local*" -ChildPath "Microsoft*" -Resolve
```
![A screen shot of PowerShell in Windows Terminal running the command 'Join-Path -Path "$Home\AppData\Local*" -ChildPath "Microsoft*" -Resolve'.](https://samerde.github.io/assets/img/content/Join-Path-Wildcards.png)

Expand All @@ -39,7 +39,7 @@ Join-Path -Path C:\, C:\Windows, $env:LOCALAPPDATA -ChildPath "Temp" -Resolve
```
![A screen shot of PowerShell in Windows Terminal running an example of Join-Path with multiple parent paths.](https://samerde.github.io/assets/img/content/Join-Path-Multiple-Parents.png)

The difference between Windows PowerShell and PowerShell becomes apparent when you want to join more than one child path. PowerShell added the **AditionalPath** parameter, which allows you to add virtually unlimited child paths like this:
The difference between Windows PowerShell and PowerShell becomes apparent when you want to join more than one child path. PowerShell added the **AdditionalPath** parameter, which allows you to add virtually unlimited child paths like this:

```powershell
# Join multiple child paths in PowerShell
Expand Down

0 comments on commit 9c9fcdf

Please sign in to comment.