Scripting Difficulties

Advertisement

nkalma
Guest

Scripting Difficulties

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

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
29,069
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

Reply with quote

Advertisement

You can post new topics in this forum