From fd9e5243059f1a096609b75b6f5694a6ac3982ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christoffer=20M=C3=BCller=20Madsen?= Date: Mon, 22 May 2017 22:22:49 +0000 Subject: [PATCH] add SHOTSHOT.BAT for Windows --- SHOTSHOT.BAT | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 SHOTSHOT.BAT diff --git a/SHOTSHOT.BAT b/SHOTSHOT.BAT new file mode 100644 index 0000000..e89edf1 --- /dev/null +++ b/SHOTSHOT.BAT @@ -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"