Topic "Script open error"

Author Message
steallport
[View user's profile]

Joined: 2009-12-10
Posts: 2
Help - I can't see what is different from other implementations I've done.

I have a script:

Code:

option batch on
option confirm off
open mysession
cd /var/lib/mysql/unloads
lcd e:\robocopy\mysession-backup\Backupv2
synchronize local
close
exit


I run the command

"C:\Program Files\WinSCP\WinSCP.exe" /console /script= E:\robocopy\mysession-backup\backup2.txt

The "DOS" window opens pauses on Searching for host... for a couple of seconds and then states Host does not exist

The "DOS" box is still open and if I type: open mysession it connects

mysession is configured with the IP as the host, port is 22, username and password are saved and the protcol is is sftp with scp fall back

Anybody got any suggestions why it doesn't connect automatically?

Upgraded from 4.0.x to 4.1.9 on a windows 2003 server

Thanks
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
steallport wrote:
"C:\Program Files\WinSCP\WinSCP.exe" /console /script= E:\robocopy\mysession-backup\backup2.txt

Remove the space after "/script=".
_________________
Martin Prikryl
steallport
[View user's profile]

Joined: 2009-12-10
Posts: 2
Thank you, that was it
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