Topic "Keep session active?"

Author Message


I currently have a script and batch file written to automate a file transfer to an sftp location. I am having issues with the transfer, so I am trying to get the session to stay active after the batch file is done running so that I can keep a console session open via Is this possible?

Batch file is as follows
"C:\Program Files\WinSCP\WinSCP.exe" /console /command "cd d:\\****_ftp\out" "d:\\" /script=script.txt

cd d:\****_ftp\out

move *.txt d:\****_ftp\out\archive

Script file is as follows
open s -hostkey=ssh-rsa 1234 key

option batch abort
option confirm off

put *.txt
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26890
Location: Prague, Czechia
Sorry, I do not understand. Please try again.
Martin Prikryl

You can post new topics in this forum


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!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License