Topic "Unknown Command "/script""

Author Message



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.

WINSCP Command Prompt.PNG (13.33 KB)

Description: (none)

WINSCP Command Prompt.PNG

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

Description: (none)

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

For details see:
Martin Prikryl

You can post new topics in this forum


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!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License