Too many parameters for command 'lcd'.

Advertisement

hemskaproblem
Joined:
Posts:
2

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!

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
38,408
Location:
Prague, Czechia

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

Reply with quote

hemskaproblem
Joined:
Posts:
2

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.
  • Logg.txt (28.24 KB, Private file)
Description: Log
  • redbutton.txt (7.39 KB, Private file)
Description: Script

Reply with quote

Advertisement

You can post new topics in this forum