Cant add Exit command after finishing script

Advertisement

flay
Joined:
Posts:
3
Location:
israel

Cant add Exit command after finishing script

Hello!
I have created a script which uploads certain files to some folder on the FTP client.
afterwards iam required to type exit manually, before it moving to the next i want to run:
@echo off
path=%path%;"C:\Program Files (x86)\WinSCP"
winscp.com /command ^
   "open sftp://mpines:@DIsystem20@sftp.carasso.co.il/" ^
   "put "C:\FTP\ClientsInvoicesEDI\carasso\out\*.*" "/"
        "exit" 
 
start MoveCarassoFiles.bat
pause
What am I missing?

Screenshot_2.png

Screenshot_1.png

Reply with quote

Advertisement

flay
Joined:
Posts:
3
Location:
israel

Re: Cant add Exit command after finishing script

Hey I tried adding the ^ but what it does is create a file with the name of ^.
and it just uploads this one file without any of the files I mentioned .

ללא שם.png

Reply with quote

Advertisement

You can post new topics in this forum