"C:\Program Files\WinSCP\winscp.exe" /console /command /log "option batch on" "option confirm off" "open username:email@example.com" "put c:\Scripts\sftptest\testfile.txt" "exit"
When I run this command I get "Searching for host. Host does not exist". How can I pass the username and password on one line? I was hoping to put this command in a script and replace the username and password with variables.