Export (0) Print
Expand All
Expand Minimize
0 out of 1 rated this helpful - Rate this topic

Converting the FileSystemObject's RootFolder Property


Windows PowerShell


Definition: Returns the root folder of the specified drive.

RootFolder


In this example we’re using the Get-PSDrive cmdlet to retrieve a reference to the drive we want to find, in this case C. After retrieving the drive, we check the Root property to find the root folder of that drive:


(Get-PSDrive c).root


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

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.