Passphrase
Thanks...
open
command should be:
"open sftp://cofcit:MayKey@huwey.tk20.com/ -hostkey=""ssh-Classified"" -privatekey=""P:\TK20FileInfo\TK20PRI.ppk"" -passphrase=""Music""" ^
@echo off
"C:\Program Files (x86)\WinSCP\WinSCP.com" ^
/log="P:\TK20FileInfo\WinSCP.log" /ini=nul ^
/command ^
"open sftp://cofcit:MayKey@huwey.tk20.com/ -hostkey=""ssh-Classified"" -privatekey=""P:\TK20FileInfo\TK20PRI.ppk""-passphrase=""Music"^
"lcd T:" ^
"cd /home/cofcit" ^
"put tk20_StudentTranscriptfile.txt" ^
"put tk20_StudentTestfile.txt" ^
"put tk20_StudentTablefile.txt" ^
"exit"
set WINSCP_RESULT=%ERRORLEVEL%
if %WINSCP_RESULT% equ 0 (
echo Success
) else (
echo Error
)
exit /b %WINSCP_RESULT%
open
line.
"LCD T:"^
and the command window leaves me at a prompt.