working with variables:
Script using the variables:
try
{
$status = wget $url | % {$_.StatusCode.ToString()}
}
catch [exception]
{
$status = $_.Exception.Message.ToString()
}
working with variables:
Script using the variables:
try
{
$status = wget $url | % {$_.StatusCode.ToString()}
}
catch [exception]
{
$status = $_.Exception.Message.ToString()
}