title: Help using signtool.exe in Delphi project post-build events
body: <p>This is a very simple question. What should I write in Delphi post build events to execute a coomand line tool?</p>
  
  <p>I wrote this:</p>
  
  <pre><code>c:\BinPath\signtool.exe sign /f c:\BinPath\Mypfxfile.pfx /p MyPassword 
  /t http:// timestamp.verisign.com/scripts/timstamp.dll c:\BinPath\Project1.exe
  </code></pre>
  
  <p>(where c:\BinPath is the Delphi output path, for simplicity I copied signtool.exe adn pfx file in the same folder)</p>
  
  <p>as i build the project I have this modal window error:</p>
  
  <blockquote>
    <p>--------------------------- Project 1- CodeGear Delphi for Microsoft Windows - Form1
    --------------------------- Cannot open file "C:\SourcePath\EXEC".
    Impossible to find the specified
    path..</p>
  </blockquote>
  
  <p>and in the messages I have</p>
  
  <blockquote>
    <p>[Exec Error] EXEC(1):
    "SignerTimeStamp() failed."
    (-2147467259/0x80004005) </p>
    
    <p>[Exec Error]
    exit from command
    "c:\BinPath\signtool.exe sign /f
    c:\BinPath\Mypfxfile.pfx /p MyPassword
    /t http://
    timestamp.verisign.com/scripts/timstamp.dll
    c:\BinPath\Project1.exee" with code 1.</p>
  </blockquote>
  
  <p>How to manage this? In Delphi help I read (from <em>Creating Build Events</em> topic):</p>
  
  <p><em>Enter the build commands, one command per line, and press Return after entering each command. Commands consist of any valid DOS command, such as: copy $() c:\Built\$()</em> </p>
  
  <p>So i simply inserted in the build event what (<code>c:\BinPath\....Project1.exe</code>) I was able to run from command prompt. Where is the error? Thanks.</p>