WinSCP Noob, having a nightmare scripting

Advertisement

T1berious
Guest

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

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,454
Location:
Prague, Czechia

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.

Reply with quote

T1berious
Joined:
Posts:
1

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 :)

Reply with quote

Advertisement

You can post new topics in this forum