Topic "script returns instantly"

Author Message
arthurprs

Guest


Hello all,

I'm running the following script
Code:

option batch abort
option confirm off
open ftp://111:111@111.111.111.111:21
synchronize local
close
exit



though the command line
Code:
WinSCP.exe /script=script.txt


the script runs fine, my only problem is that the process returns instantly and seems like the process runs in another process. I read the docs and forum but I couldn't find why it's behaving like that. I need to get the turn value 0 or !0 to check if everything went fine.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
To see an output of winscp.exe you need to add /console switch.
Or use winscp.exe.
See http://winscp.net/eng/docs/executables
_________________
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