Topic "Scripting Difficulties"

Author Message
nkalma

Guest


I am trying to write a script that will be used with windows scheduler that will synchronize two directories, I have changed the setup to use the .ini file, and have written this script. Which for now just sends and gets a file, however, it just pops up and asks for the host. Is there something I am doing wrong?

option batch on
option confirm off
open user:pass@servername.com
cd /export/home/
get 33.mon d:\
lcd c:\
put 22.mon
close
exit
nkalma

Guest


I have also in the command entered

winscp3.com /console/script=test1.txt
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24512
Location: Prague, Czechia
nkalma wrote:
I have also in the command entered

winscp3.com /console/script=test1.txt

There's no space between the two options. WinSCP then does not recognise the options and behaves like if you run winscp without options. Also /console option has no effect when you run .com application.
_________________
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