Converting the FileSystemObject's GetFile Method
Definition: Returns an object reference to a File object, allowing you to retrieve file properties such as file creation date and file last accessed date.
GetFile
Use the Get-Item cmdlet to retrieve a reference to a file. You can find out the properties available on that file by piping the reference to Get-Member.
$a = Get-Item c:\scripts\test.txt
$a | Get-Member
See conversions of other FileSystemObject methods and properties.
Return to the VBScript to Windows PowerShell home page