Converting the FileSystemObject's Path Property

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


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

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