Looking at example on WinSCP forums, I am able to put together a .bat file and associated .txt file, which works ONLY if both files are located under the same location as where WinSCP.com (and other WinSCP related files) is located:
C:\Program Files (x86)\WinSCP
Is there a way to run my .bat file successfully without having it under:
C:\Program Files (x86)\WinSCP
My .bat file content:
winscp.com /script=recon_SFTP.txt
pause
I did try moving my .bat file and .txt file to another location and adding location path, but it didn't work. I am guessing I need to escape spaces from my file path to location winscp.com?:
C:\Program Files (x86)\WinSCP\winscp.com /C:\Users\sqlservice\Desktop\SSmith1\script=recon_SFTP.txt
pause