@echo off
if [%1]==[] goto usage
set code=%1
set code=%code:http://www.quickmeme.com/meme/=%
set code=%code:/=%
echo http://i.qkme.me/%code%.jpg
goto end
:usage
echo qme [url_or_just_the_code]
echo Prints out the direct link to the image of the given quickmeme url
:end
pause