Not Exiting

Advertisement

Navneet_Nair
Joined:
Posts:
1
Location:
Fiji

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"

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
32,391
Location:
Prague, Czechia

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"

Reply with quote

Advertisement

You can post new topics in this forum