Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

dineshsaraswat

Not able to open Command Terminal

Hi,

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".

Authentication failed.
"

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.

Regards,
Dinesh Saraswat