Converting the FileSystemObject's GetFolder Method

Definition: Returns an object reference to a Folder object.


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