Created
February 10, 2020 22:03
-
-
Save JaekelEDV/0bc8e560ab7a1cd609be7e387f42580c to your computer and use it in GitHub Desktop.
RFC->txt-download-powershell
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Get-RFC { | |
[CmdletBinding()] | |
param ( | |
[Parameter(Mandatory = $True)] | |
[string] $RFC | |
) | |
$url = "https://www.ietf.org/rfc/rfc$RFC.txt" | |
$output = "c:\temp\rfc$RFC.txt" | |
(New-Object System.Net.WebClient).DownloadFile($url, $output) | |
Invoke-Item -Path $output | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment