Topic "Not able to open Command Terminal"

Author Message
dineshsaraswat
[View user's profile]

Joined: 2014-02-18
Posts: 1
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
First Message.png (17.66 KB) [Download]

Description: Warning Message when clicked on open terminal.

error while opening.png (18.21 KB) [Download]

Description: Error after proceeding with warning message.

martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24512
Location: Prague, Czechia
You cannot use Terminal/Console window for automation.
Start here instead: http://winscp.net/eng/docs/guide_automation
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License