-
-
Save Kyshman/a1023b2268ae6806e7fc3eb5e4239c3d to your computer and use it in GitHub Desktop.
Upload to transfer.sh from 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 transfer ($filename) | |
{ | |
$file = Get-Item $filename; | |
invoke-webrequest -method put -infile $file.FullName https://transfer.sh | |
} | |
"Test" | Set-Content .\test.txt | |
transfer(".\test.txt") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment