Hello Everybody,
I am trying to download a file to my network drive from a remote SFTP server through logging into WinSCP .
I am trying to use the following code and not sure sure if the syntax is correct, so any help would be appreciated.
%let ftpfile_loc = \\User\folder1\files;
%let dest = \\User\folder1\Dataout;
%sysexec "C:\WinsSCP\WinSCP.exe" /console /script:"&ftpfile_loc\ftpscript.txt" /command "get remotefile.prn &dest\localfile.prn" "close" "exit";
In the above code, is the get command syntax correct?
ftpscript.txt has the following code in it
option batch on
option confirm off
open sftp://user:password@xx.x.xxx.xx.22
cd /folder1/folder2//files
Is there any other way of downloading the file from sftp server, plz let me know, because in the above code, i dont' know how to debug the code?
I am really running out of time on this, so help is much appreciated.
Thanks & Regards
Eshan