Expand Minimize
This topic has not yet been rated - Rate this topic

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

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.