lcd error – ftp WinSCP powershell script

Welcome Forums General PowerShell Q&A lcd error – ftp WinSCP powershell script

Viewing 1 reply thread
  • Author
    Posts
    • #257249
      Participant
      Topics: 1
      Replies: 0
      Points: 11
      Rank: Member

      Getting error below when running the command in a powershell script: lcd \\pd-cicts-11\BESTDailyReports\MIS\Post Bank Statements\2020

      Even if I assign the path to a variable. Issueis the spaces between folder name: Post Bank Statements

      ——————————————————–

      Too many parameters for command ‘lcd’.
      Error

      <hr />

      My existing tech environment: Running powershell script from Windows server.
      <p class=”recommendation-info__business-info-line”> </p>

    • #257252
      Participant
      Topics: 16
      Replies: 1792
      Points: 3,290
      Helping Hand
      Rank: Community Hero

      Use qoutes around the path:

Viewing 1 reply thread
  • You must be logged in to reply to this topic.