How to find parts of a pathinfo object in powershell
Get-Location (which I call pwd) returns a PathInfo
A System.Management.Automation.PathInfo.
It has four Properties of great use (and here is an example for each)
- Drive --
C:\--PSDriveInfoobject - Path --
C:\users\example\experiments--string - Provider --
Microsoft.PowerShell.Core\FileSystem--Providerobject - ProviderPath --
C:\users\example\experiments--string