Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

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: Not Exiting

"C:\Program Files (x86)\WinSCP\WinSCP.com" ^

/log="C:\ftpfiles\ftp_log.txt" /ini=nul ^
/command ^
"open sftp://navneet%%40jacksfiji.com:*********@ftp.storetraffic.com/ -hostkey=""************************""" ^
"get ".../JRF.csv" "Z:\...\JRF.csv" ^
"exit"
Navneet_Nair

Not Exiting

I Have the Following Code i can not seem to get it to Exit.
I Have tried "exit"
"clode"
"bye" none of them seem to work i end up with winscp> after the script runs
@echo off

"C:\Program Files (x86)\WinSCP\WinSCP.com" ^
/log="C:\ftpfiles\ftp_log.txt" /ini=nul ^
/command ^
"open sftp://navneet%%40jacksfiji.com:*********@ftp.storetraffic.com/ -hostkey=""************************""" ^
"get "JACKS-RETAIL-FIJI-E2C49672-9F8B-8A8C-5A83-B93F64C31DC6/exports/JRF.csv" "Z:\INV_SALES_INTG_LOGS\storetraffic\exports\JRF.csv"