Skip to content

Instantly share code, notes, and snippets.

@MarkTiedemann
Created March 2, 2017 23:11
Show Gist options
  • Save MarkTiedemann/c42bc1d01138e33b2d37cce7b3aad45c to your computer and use it in GitHub Desktop.
Save MarkTiedemann/c42bc1d01138e33b2d37cce7b3aad45c to your computer and use it in GitHub Desktop.
Download file and print content via batch script
@ECHO off
SET downloadUrl=https://api.github.com/users/marktiedemann
SET tempFile=%cd%\.%random%-tmp
BITSADMIN /transfer /download %downloadUrl% %tempFile% >nul
TYPE %tempFile%
DEL %tempFile%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment