How To Join Paths // EP 03 // Efficient & Automatic File Management With PowerShell

Опубликовано: 16 Июль 2026
на канале: Go Cloud Easily
1,048
15

In this Video, We will learn about how to join path Using PowerShell.

Copy this Code in PowerShell ISE (Integrated Scripting Environment)
In case you want to know about how to open PowerShell ISE, please refer    • PowerShell As Admin to Edit Registry // EP...  

##########################
Prepare Demo Environment
########################

Set-Location "D:\PSTraining\PracticeGround" # Setting My Working Location Path, Create this folder in case not exist Already
Remove-Item .\* -Recurse -Force # Emtying Current folder for this Demo
1..5|% {New-Item -Path . -Name "$("file" + "$_").txt" -ItemType "file"} # Creation of 5 Text test files

#######################################
Running our Examples
#######################################

1 Combine a path with a child path using PowerShell
Join-Path -Path "path" -ChildPath "childpath"

2 Combine paths that already contain directory separators using PowerShell
Join-Path -Path "path\" -ChildPath "\childpath"

3 Display files and folders by joining a path with a child path using PowerShell
Join-Path "C:\win*" "System*" -Resolve

4 Use Join-Path with the PowerShell registry provider
Join-Path -Path "HKLM:\System" -ChildPath ControlSet -Resolve

5 Combine multiple path roots with a child path using PowerShell
Join-Path -Path C:, D: -ChildPath NewFolder

************************************************************************
************************************************************************
Join Me on --
Facebook Group
  / mylearningsonline  
Facebook Page
  / mylearningsonline  
YouTube Channel
   / mylearningsonline  

**************************************************************************
#PowerShell #PowerShellScripting #PowerShellForBeginners #learnPowerShell​ #PowerShelltraining​ #PowerShellTutorial #MyLearningsOnline

PowerShell Scripting for Beginners
PowerShell Tutorial for Beginners
PowerShell Full Course
PowerShell Training for Beginners
File and Folder Path Management Using PowerShell
Join Path in PowerShell