TechNet
Export (0) Print
Expand All
Collapse the table of content
Expand the table of content
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

Show:
© 2016 Microsoft