Converting the FileSystemObject's GetFolder Method


Windows PowerShell


Definition: Returns an object reference to a Folder object.

GetFolder


Assign the output of the Get-Item cmdlet to a variable; that variable will contain a reference to the folder.


$a = Get-Item C:\Scripts


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

Show: