Export (0) Print
Expand All
Expand Minimize

Converting the FileSystemObject's FolderExists Method


Windows PowerShell


Definition: Returns True if the specified folder exists.

FolderExists


To do this in PowerShell, simply pass the folder you’re checking for to the Test-Path cmdlet:


Test-Path 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