Skip to content

Instantly share code, notes, and snippets.

@splitice
Created March 15, 2014 07:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save splitice/9562983 to your computer and use it in GitHub Desktop.
Save splitice/9562983 to your computer and use it in GitHub Desktop.
@echo off
set path=%1
set folder=%date:~4,2%-%date:~7,2%-%date:~10,4%
For %%A in ("%path%") do (
Set Name=%%~nA
)
cd "C:\Program Files (x86)\WinSCP"
start /B WinSCP.exe /script="{PATH_TU_UPLOAD_SCRIPT}\winscpupload.txt" /parameter // %1 %folder%
cd /D C:\windows\system32\
echo http://{URL}/%folder%/%Name%.png | clip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment