
# Parametry
$Url = "http://www.windows-scripting.com"
$Cel = "c:\teched\10_PowerShell\main.htm" 

# Skrypt
Write-Host "Ładowanie " $url "..."
$html = (new-object System.Net.WebClient).DownloadString($Url)
$html | Set-Content -Path $Cel
Write-host "Strona została zapisana: " $Cel

trap [System.Exception]
 {
    write-host "Błąd ładowania: `"$url`"" `n
    exit
 }

# SIG # Begin signature block
# MIID0QYJKoZIhvcNAQcCoIIDwjCCA74CAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB
# gjcCAQSgWzBZMDQGCisGAQQBgjcCAR4wJgIDAQAABBAfzDtgWUsITrck0sYpfvNR
# AgEAAgEAAgEAAgEAAgEAMCEwCQYFKw4DAhoFAAQUoqhaMDcEWxm5953cBJnVBxSX
# HxugggH6MIIB9jCCAV+gAwIBAgIQ+eSx7HGLOYNIKrPm3n+AqzANBgkqhkiG9w0B
# AQQFADANMQswCQYDVQQDEwJIUzAeFw0wNjExMTMxOTEyNDZaFw0zOTEyMzEyMzU5
# NTlaMA0xCzAJBgNVBAMTAkhTMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCt
# 86zgO5WCLpiiM9vax6uYBfnasvkd1Yr+XYso8zH8VQAtQwgOQVwSayX8IAW+yvMr
# FHIqtfdSElXDxekbglhr477qzY44I1SdGmRTbYHpQ3uZaPhHDbGfgkprmAMv/D5U
# kJlbNQ/gkTm5dXVrIJPP7ZDKNTi8Z16aQK3n3sdhJwIDAQABo1cwVTATBgNVHSUE
# DDAKBggrBgEFBQcDAzA+BgNVHQEENzA1gBAsXfgV8v2A7hHm0vOHSvlkoQ8wDTEL
# MAkGA1UEAxMCSFOCEPnksexxizmDSCqz5t5/gKswDQYJKoZIhvcNAQEEBQADgYEA
# cyFGJdRT+An6qgboSpc0MAAVy8/FO7uMUecxC6R2yQjzg78QHWF3Pv2U1AszoUpk
# L1hcZhOlMlENrzi51iqFMrhrrGZuaDaDl/+rORKch79LeLOWt1R9+BM+CYTCuAAq
# 5J8n3V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