Post a reply

Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)


Topic review


Re: Keep session active?

Sorry, I do not understand. Please try again.

Keep session active?

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