Post a reply

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

flay

Re: Cant add Exit command after finishing script

Thank you very much, it worked!
martin

Re: Cant add Exit command after finishing script

OK, you have also the quotes wrong:
   "put ""C:\FTP\ClientsInvoicesEDI\carasso\out\*.*"" ""/""" ^

Or as you actually do not need the inner quotes, you can simply do:
   "put C:\FTP\ClientsInvoicesEDI\carasso\out\*.* /" ^

Again, it's all in the FAQ:
https://winscp.net/eng/docs/faq_batch_file#quotes
flay

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 .
flay

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?