Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

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.
nkalma

I have also in the command entered

winscp3.com /console/script=test1.txt
nkalma

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