Converting the FileSystemObject's Path Property


Windows PowerShell


Definition: Returns the full path to a file, folder, or drive.

Path


Use Get-Item or Get-ChildItem to retrieve the file, folder, or drive, then access the full path by retrieving the FullName property.


$a = Get-ChildItem C:\scripts\test.txt
$a.FullName


See conversions of other FileSystemObject methods and properties.
Return to the VBScript to Windows PowerShell home page

Show: