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