Topic "WinSCP Noob, having a nightmare scripting"

Author Message
T1berious

Guest


Hi,

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

Code:

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 Smile

Cheers T1b
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
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.
_________________
Martin Prikryl
T1berious
[View user's profile]

Joined: 2011-08-12
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 Smile
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
No you cannot generate script from the GUI.

Please read documentation:
https://winscp.net/eng/docs/guide_automation
_________________
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