<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Hi!<br>
      <br>
      On 24.02.2016 01:13, honas grael wrote:<br>
    </div>
    <blockquote
cite="mid:CADPsCNvb98-8YT80Cm-E9zGbdNf0p8uN_YD=O8LPjDVFhHHxjw@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div>
            <div>
              <div>Hello,<br>
              </div>
              I'm running buildbot on windows 7, these are my first
              steps, so far I've followed the tutorials and they've been
              quite ok.<br>
            </div>
            I am struggling a little with ShellCommand, I am trying to
            run an executable from the commandline and pass it a
            parameter.<br>
            <br>
          </div>
          so from the command line in windows I would type<br>
        </div>
        <br>
        C:\Path\To\MyExecutable.exe fileparam1.txt<br>
        <div>
          <div><br>
            to do this I have a step as follows:<br>
            f.addStep(steps.ShellCommand(command=["C:\Path\To\MyExecutable.exe",
            "fileparam1.txt"])) <br>
            <br>
          </div>
          <div>But I keep getting startCommand errors.<br>
          </div>
          <div>Am I using the shell command correctly here. I'm sure I'm
            missing something very obvious here<br>
            <br>
          </div>
          <div>Regards<br>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:users@buildbot.net">users@buildbot.net</a>
<a class="moz-txt-link-freetext" href="https://lists.buildbot.net/mailman/listinfo/users">https://lists.buildbot.net/mailman/listinfo/users</a></pre>
    </blockquote>
    <br>
    Do you escape backslashes in path?<br>
    <br>
    I.e. instead of <br>
    <br>
        command="C:\Path\To\MyExecutable.exe"<br>
    <br>
    should be <br>
    <br>
        command="C:\\Path\\To\\MyExecutable.exe"<br>
    <br>
    or, more preferable,<br>
    <br>
    <br>
        command=r"C:\Path\To\MyExecutable.exe"<br>
    <br>
    If this is not the problem, can you post logs/exceptions/errors that
    you see when running such build?<br>
    <br>
    --<br>
    Vladimir Rutsky<br>
    <br>
  </body>
</html>