Topic "Unknown Command "/script""

Author Message
Ellen

Guest


Hello,

First of all, thank you for all the documentation on WinSCP.

I have created a batch file, which I have enclosed with this post. I am trying to execute the batch file from the winscp command prompt. Eventually I will call the batch file from SQL Server, but I want to make sure everything works correctly from the command prompt first.

Anyways, the winscp command prompt does not seem to be recognizing the "/script" command. I get an error message stating "Unknown command". I am enclosing a screenshot of the error along with various syntax that I tried.

I am not sure if I am doing something fundamentally wrong, so any advice would be welcome.

Thanks,
Ellen
WINSCP Command Prompt.PNG (13.33 KB)

Description: (none)

WINSCP Command Prompt.PNG

WinSCP Bat File.txt (212 Bytes) [Download]

Description: (none)

martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
You have to execute winscp.com /script... from Windows command prompt, not from WinSCP command prompt.

For details see:
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