CheckIfVirtualDirectoryExists


CheckIfVirtualDirectoryExists
    [-webSite] <String>
    [-virtualDir] <String>

Description

Checks if a virtual directory exists under a website.

Example


if(CheckIfVirtualDirectoryExists -webSite "MySite" -virtualDir "SubDir")
{
    Write-Host "Virtual directory exists"
}