Post a reply

Options
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)

Options

Topic review

martin

Re: Keep session active?

Sorry, I do not understand. Please try again.
AndrogynyRocks

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 winscp.com. 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 sftp://user@site.com -hostkey=ssh-rsa 1234 key

option batch abort
option confirm off

put *.txt