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

martin

Re: Too many parameters for command 'lcd'.

As per https://winscp.net/eng/docs/faq_batch_file#quotes:
  "lcd ""C:\Users\dale04\Telia Company\...\AV_KARLSHAMN\""" ^

(the same for all following commands what include paths with spaces)
hemskaproblem

Re: Too many parameters for command 'lcd'.

Thank you for your reply. I checked the FAQ but couldn't find anything that would help resolve it. I removed the empty lines, but still the same problem.
martin

Re: Too many parameters for command 'lcd'.

It's difficult to review such a long script posted as an image. Particularly because the problem might be about spaces and newlines.

Anyway, first, remove all empty lines from the script (or escape the newlines there). If that does not help, see also Why are some WinSCP scripting commands specified in a batch file not executed/failing?. If that does not help either, please post the actual script file (you can post it as a private attachment to prevent it being indexed).
hemskaproblem

Too many parameters for command 'lcd'.

We have an error that occured after we changed from using a network drive to a SharePoint Online. I'm not sure if this error is related to that.

I guess the script is poorly written, but it has always got the job done.
It checks local folders and synchronizes it with the remote folder.

I do not wish for the script/log file to be indexed to search engines, so I added images of the textfiles. I hope that's OK.

If anyone can see what's triggering the error message I would highly appreciate it.

Script:



Log:





Thanks in advance!