Topic "Keep session active?"

Author Message
AndrogynyRocks

Guest


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
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
Sorry, I do not understand. Please try again.
_________________
Martin Prikryl
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