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
  • ah, I figured it out. Previously, I had an absolute path to the batch file. When I originally specified the file, uVision put "" marks around the whole path. Then when I changed it to just the batch file name (no path) I deleted the first " but neglected to delete the second " ... as soon as I deleted the second " it all worked fine.

    Thanks for the suggestions ;-)

Reply
  • ah, I figured it out. Previously, I had an absolute path to the batch file. When I originally specified the file, uVision put "" marks around the whole path. Then when I changed it to just the batch file name (no path) I deleted the first " but neglected to delete the second " ... as soon as I deleted the second " it all worked fine.

    Thanks for the suggestions ;-)

Children
No data