I am writing a DOS batch file that will upload a specific file to the remote server. I can call the batch file and the following line successfully runs:
winscp.exe sftp://email@example.com /home/domain/dir/ /upload c:\dir\myfile.txt
The problem I have is that I want to automate the script for unattended automation but it will open the gui window and prompt me to select/check the box marked "New/Updated files only" and then I have to click the "Copy" button.
I have been reading the docs, and tried /defaults and using winscp.com but I must be missing something because I cannot figure out how to automatically tell it that I want "New/Updated files only" CHECKED and then to go ahead and automatically copy.