Getting Real Paths

PowerShell uses virtual drives, which sometimes have a close mapping to the "real" drives you see in Windows Explorer. However, sometimes these drives have no apparent real-world relation. Let's say you have created the following drive "test":

New-PSDrive test FileSystem $env:windir
dir test:

The virtual drive "test" now points to your Windows folder. To "translate" virtual paths to real paths, use Convert-Path:

Convert-Path test:\system32

Posted May 22 2009, 08:00 AM by ps1
Concentrated Tech NSoftware Dell Compellent Sponsored by Idera and Concentrated Tech and NSoftware and Dell Compellent
Copyright 2011 PowerShell.com. All rights reserved.