Topic "How to close WinSCP batch file"

Author Message
dwilson9@charter.net
[View user's profile]

Joined: 2015-06-25
Posts: 2
I have created a batch file for our SFTP process using WinSCP. The batch file and process executes correctly but for some reason after completing the console returns to a winscp prompt and does not close. I have tried adding "close,disconnect,etc." to the batch, but nothing seems to work except manually going in and typing exit. Does anyone know of a way to close down the console once the batch has executed? Thanks.

simple batch

cd\
cd c:\progra~2\WinSCP
winscp.com /script=SFTP.txt
close
WINSCP.PNG (18.5 KB)

Description: (none)

WINSCP.PNG

Guest




Add an "exit" Smile
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24512
Location: Prague, Czechia
That's correct, use exit command:
http://winscp.net/eng/docs/scriptcommand_exit
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