How to close WinSCP batch file
I have created a batch file for our SFTP process using WinSCP. The batch file and process executes correctly but for some reason after completing the console returns to a winscp prompt and does not close. I have tried adding "close,disconnect,etc." to the batch, but nothing seems to work except manually going in and typing exit. Does anyone know of a way to close down the console once the batch has executed? Thanks.
simple batch
cd\
cd c:\progra~2\WinSCP
winscp.com /script=SFTP.txt
close
simple batch
cd\
cd c:\progra~2\WinSCP
winscp.com /script=SFTP.txt
close