I have a script that is executing perfectly on command prompt. If I copy and paste the script directly to the command window then it is working fine, but when save it like Windows batch file and run it it is hanging.
option batch abort
cd \program files\winscp\
winscp.com /command "open HennTest:Nate82@data.test.com" /privatekey=C:\HennTest\VCS\HennTest_key_putty.ppk
option confirm off
get /*.csv C:\HennTest\VCS\
close
exit
It is connecting to the server but not executing the get
statement when using like batch but it is working correctly when I copy/paste it directly.
I need to use it like batch since I want to automate the script to download the files.