Export (0) Print
Expand All
Expand Minimize

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

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft