When we want to scp files from Windows to linux in our application, and there is a limit to install a software, we can use the WinSCP Command-line in Windows command prompt.

WinSCP Command-line have two modes (Console/scripting mode),

I listed the console mode basic sample below.

C:¥winscp¥winscp.com /command "option batch on" "option confirm off" "open sftp://[scp user]:[scp password]@[scp to ipaddress]" "put C:¥test¥test01.txt" "/temp/" "option transfer binary" "close" "exit"

Reference Link to heading

We can also use any other options in WinSCP Command-line Options.