Skip to content

Instantly share code, notes, and snippets.

@rameshz23
Forked from pushmon/gist:1886142
Created June 18, 2018 17:26
Show Gist options
  • Save rameshz23/9a9493583528ce1065f807d55b8e5d98 to your computer and use it in GitHub Desktop.
Save rameshz23/9a9493583528ce1065f807d55b8e5d98 to your computer and use it in GitHub Desktop.
Batch File
rem
rem Please download curl from https://curl.haxx.se/download.html and add it to your path.
rem
@echo on
rem if command fails, exit and do not ping
if %errorlevel% neq 0 goto ERROR
set URL_STRING=http://pshmn.com/eaFnY
curl %URL_STRING%
rem
rem If you prefer wget, please download wget.exe from https://eternallybored.org/misc/wget/ and add it to your path.
rem
rem wget -q -O - %URL_STRING%
:ERROR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment