Topic "Command not working"

Author Message
bsawchuk

Guest


I have a script I use to automate downloading/uploading files.

The first line is to open the Winscp session. Command prompt comes up with the following error:


C:\Program Files (x86)\WinSCP>open sftp://nehlonline:********@nehonline.com
'open' is not recognized as an internal or external command,
operable program or batch file.

Any ideas whats causing the commands to fail? I have checked the variables file etc but can't get it working.

Thanks in advance.
Advertisements
bsawchuk

Guest


did some more digging and it looks like its Winscp not recognizing any of the commands. Any ideas why?
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
You have to execute the command in WinSCP console, not in Windows console.
Please read
http://winscp.net/eng/docs/scripting
http://winscp.net/eng/docs/scripting
bsawchuk

Guest


prikryl wrote:
You have to execute the command in WinSCP console, not in Windows console.
Please read
http://winscp.net/eng/docs/scripting
http://winscp.net/eng/docs/scripting


I have tried that, Winscp does not recognize those commands either
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
Please attach a screenshot.
_________________
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