Post-link commands fail with "Can't start process"

Comments

7 comments

  • Avatar
    Michael Johnson

    You'll need to use something like

    cmd.exe -k blah.bat

    0
    Comment actions Permalink
  • Avatar
    Jackson James

    Thanks Michael, with a bit of modification that worked.

    The post link command I used is:

    cmd.exe /c blah.bat

     

    The /c option runs the command then terminates

    The /k option runs the command but remains so the build never finishes

    0
    Comment actions Permalink
  • Avatar
    Brooks Garrison

    I too am trying to execute a batch file after the link step. However, I get the message:

    "Can't start process"

    cmd.exe /C GenerateAdditionalOutput.bat

    I've tried putting the whole thing in quotes:

    "cmd.exe /C GenerateAdditionalOutput.bat"

    but that does not work.

    My Post Link Working Directory is set to $(ProjectDir) just like the OP's

    Thoughts on why this is occurring?

     

    1
    Comment actions Permalink
  • Avatar
    Dave Nadler

    On 32-bit Windows 7, I'm using:
    CrossWorks for MSP430 .
    Release 2.2.1.2013112503.19841
    Windows x86

    I've tried various combinations of the above including the complete path to cmd.exe
    No matter what I try I, the post-link command fails and I get the following error:
      Can't start process C:\Windows\System32\cmd.exe

    Help!!
    Thanks,
    Best Regards, Dave

    0
    Comment actions Permalink
  • Avatar
    Michael Johnson

    What happens with

    cmd.exe /c echo hello world

    0
    Comment actions Permalink
  • Avatar
    Dave Nadler

    Along with every other permutation I've tried,
      cmd.exe /c echo hello world
    yields same result:

    0
    Comment actions Permalink
  • Avatar
    Dave Nadler

    One time I noticed "cmd /c makeS19" failed with a different error:


    Usually it fails with the message above.
    Anybody out there have any ideas?
    Thanks,
    Best Regards, Dave

    0
    Comment actions Permalink

Please sign in to leave a comment.