Posted: 2014-02-19 09:50
I am new to batch scripting and WinSCP.
I am trying to write a script that will look for a specific pattern file on remote fie server. If found then I need to transfer the file from remote server to my local system.
I configured WinSCP in commander mode and can transfer the file in GUI interface. But I need to automate the task of transferring the file.
I tried opening the Command Terminal I get a message as when clicked on open command terminal:-
" Do you want to open separate shell session?
Current SFTP-3 session does not support command you request.
Separate shell session may be opened to process the command.
Note: The server must provide a Unix-like shell and the shell must be use the same path syntax as current sftp session.
When I do proceed with the same then a error message pops up as :-
"Authentication log (see session log for details):
Using username "DSA_ZS".
Can someone help and let me know where I am making a error and also how can I write the script that will be batch file.
I cannot go ahead with .NET and powershell script. In case if I have to write a powershell script what are the environment related pre-requisite for the same.
Thanks in advance.
Description: Warning Message when clicked on open terminal.
Description: Error after proceeding with warning message.
Location: Prague, Czechia
You cannot use Terminal/Console window for automation.
Start here instead: http://winscp.net/eng/docs/guide_automation
You can post new topics in this forum
And it's free!