Relative & Absolute Paths // EP 02 // Efficient & Automatic File Management With PowerShell

Опубликовано: 30 Март 2026
на канале: Go Cloud Easily
1,406
24

In this Video, We will discuss about what are Relative and Absolute Path.
How to use relative and Absolute Path In PowerShell
Difference between Relative Path and Absolute Path
Pro and Cons of Using relative and Absolute Path in PowerShell Scripting

******************************************************************
Commands that have been used in this Video are -

Prepare Demo Environment
Set-Location "D:\C2_EAFM_Resources\PracticeGround" # Setting My Working Location
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

1 Open Current Directory in Windows Explorer using Relative Path in PowerShell
Start ..

2 Open Parent Directory in Windows Explorer using Relative Path in PowerShell
Start ..

3 Resolve relative path of a file to Absolute path Using PowerShell
Resolve-Path .\file1.txt

Resolve relative path to Absolute path of files in bulk Using PowerShell
Resolve-Path .\file*.txt

************************************************************************
************************************************************************
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
How to Use Relative and Absolute Path in PowerShell Scripting