Post a reply

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

T1berious

Hi,

I think it's more about me being a complete Noob, can you "generate" script via the GUI?

I just want to copy from the local machine point A to Local machine point B.

I figure, I'm just being dense.

Many thanks,

T1b :)
martin

Re: WinSCP Noob, having a nightmare scripting

Are you able to log in in the GUI? If you are, enable loging both in the GUI and script. And compare the log files, to see what the session configuration differes in.
T1berious

WinSCP Noob, having a nightmare scripting

Hi,

I'm trying to automate a copy job. it's just local at the moment as I want to test the logging.

option batch on

option confirm off
option transfer binary
open 127.0.0.1
cd D:\Axway\

lcd "D:\test\"

put *.*

close
exit


"D:\Program Files\WinSCP\WinSCP.com" /script:"D:\Script\Test.txt"

It fails with the following error:
batch on
confirm off
transfer binary
Searching for host...

Network error: Connection refused.
No session.
D:\test
No session.
No session.

Could really do with a kick in the right direction :)

Cheers T1b