Unable to get 'put' script to work
hello, and thanks in advance -
winscp version: 5.5.2 (build 4130)
windows 2010
protocal: FTP
i am trying to upload a .txt file, and i've templated a script off the example posted here:
https://winscp.net/forum/viewtopic.php?t=6767
the script generates the following strShell string:
"C:\Program Files (x86)\WinSCP\WinSCP.exe" userID:password@host.url "put \\local drive\local folder\FTP_Upload_Test.txt /ftp path folder/sub-folder/" "close"
which i execute with: Shell strShell
problems:
1. i've set up the host login with the userID and password that i'm assigning in the strShell string, and can login manually with no problem; however when i execute the shell command, it initially follows the same login sequence, but then says "access denied" and then asks for the pw to be entered again.
2. re-entereing the pw does allow the login to proceed successfully, but the file transfer does not occur
winscp version: 5.5.2 (build 4130)
windows 2010
protocal: FTP
i am trying to upload a .txt file, and i've templated a script off the example posted here:
https://winscp.net/forum/viewtopic.php?t=6767
the script generates the following strShell string:
"C:\Program Files (x86)\WinSCP\WinSCP.exe" userID:password@host.url "put \\local drive\local folder\FTP_Upload_Test.txt /ftp path folder/sub-folder/" "close"
which i execute with: Shell strShell
problems:
1. i've set up the host login with the userID and password that i'm assigning in the strShell string, and can login manually with no problem; however when i execute the shell command, it initially follows the same login sequence, but then says "access denied" and then asks for the pw to be entered again.
2. re-entereing the pw does allow the login to proceed successfully, but the file transfer does not occur