Good news!
Working version:

@echo off
for %%a in ("%cd%") do set folder=%%~na
winscp.com /command "open devuser@172.16.16.11 -privatekey=C:\Users\suliman\.ssh\123.ppk" "put latest.tar.gz /home/devuser/folder/" "exit"


1. File-name hard-coded
2. WinSCP should be installed and added to PATH

Reply via email to