title: Passing parameters to winscp.com command line
body: <p>I am trying to write a WinSCP script. I tried the example at,<br>
  <a href="https://winscp.net/eng/docs/guide_automation#parametrized" rel="nofollow noreferrer">https://winscp.net/eng/docs/guide_automation#parametrized</a></p>
  
  <p>but the parameter value is not taken by the script.</p>
  
  <p>When the script is invoked as,</p>
  
  <pre><code>winscp.com /script=testscript /parameter param1
  </code></pre>
  
  <p>The following occurs:</p>
  
  <p>First,</p>
  
  <pre><code>Searching for host
  host not found
  </code></pre>
  
  <p>is displayed.</p>
  
  <p>Followed by, actually connecting to the host using the</p>
  
  <pre><code>"open command"
  </code></pre>
  
  <p>but the parameter is never substituted.</p>
  
  <p>It still displays as <code>%1</code></p>