This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Running user program after make

I want to run a batch to do something to my hex file after a build, so I specify that batch file as "User Program #1" in the project settings. But I don't want to give it an absolute path, because it should be portable and work no matter what my working directory is. However, if I just type the name of the batch file I get an error saying it can't execute that .bat file. Is there some way to make uVision execute files in the same directory that the project is in without specifying an absolute path?

Thanks!

Parents
  • Have you tried:

    .\file.bat

    Also, look at the Key Sequences:

    "A key sequence may be used to pass arguments from the uVision2 environment to external user programs."

    (From the online help: click the '?' button, and then click in a 'Run User Program' box; also in the Manual).

    But beware of spaces in folder names...

Reply
  • Have you tried:

    .\file.bat

    Also, look at the Key Sequences:

    "A key sequence may be used to pass arguments from the uVision2 environment to external user programs."

    (From the online help: click the '?' button, and then click in a 'Run User Program' box; also in the Manual).

    But beware of spaces in folder names...

Children
No data