add SHOTSHOT.BAT for Windows

This commit is contained in:
Christoffer Müller Madsen 2017-05-22 22:22:49 +00:00
parent 29a481031d
commit fd9e524305

10
SHOTSHOT.BAT Normal file
View File

@ -0,0 +1,10 @@
SET /A RANDOMNUMBER=(%RANDOM% * 10) + %RANDOM% + 100000
SET USER_PREFIX=c
SET ARB_PREFIX=w
SET SCR_FILENAME=%USER_PREFIX%%ARB_PREFIX%%RANDOMNUMBER%
SET SCP_HOST=strawberry.thedevcave.net
SET SCP_REMOTE_PATH=public_html/screenshots
SET SCP_BIN="C:\Program Files (x86)\PuTTY\pscp.exe"
echo https://dcav.pw/c%SCR_FILENAME%| clip
%SCP_BIN% %1 "%SCP_HOST%:%SCP_REMOTE_PATH%/%SCR_FILENAME%.png"