-- PowerShell
PowerShell로 웹소스 가져오기
어린왕자악꿍
2011. 8. 17. 11:47
$objReq = [System.Net.WebRequest]::Create("http://www.google.co.kr")
$objRes = $objReq.GetResponse()
$objReqStrm = $objRes.GetResponseStream()
$objReadStrm = New-Object System.IO.StreamReader $objReqStrm
$strContents = $objReadStrm.ReadToEnd()
$objReadStrm.Close()
$objRes.Close()
Write-Host $strContents
WebSource.ps1
참고 : http://alexgorbatchev.com/SyntaxHighlighter/manual/brushes/powershell.html