Export (0) Print
Expand All
Expand Minimize

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

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