03-31-2014 12:00 PM
Hi,
I am trying to run a .bat file (i.e. “mybatfile.bat”) from the tools menu. At the moment I manage to do that by customizing the Tools Menu: Tools-->Customize-->Add then in the “Menu item name” box I use “RunBatFile” and in the “Program Name” box I use the “Browse” facility to navigate and select the “mybatfile.bat” file. Everything work fine however, the content of the file “mybatfile.bat” differs from project to project and, instead of creating new menu items for each project I would like to create a .bat file for each project and get the relative path to it in the “Program Name” box.
Is there any way of doing that?
Thank you!
ZZippo
04-10-2014 08:58 AM
Hey Zzippo,
Are you still having issues with this?
Unfortunately I've not yet found a way to programmatically do this, although that's not to say it's impossible...
06-05-2014 10:17 AM
Hi Justin,
Well….sort of…I could not get the relative path to the .bat file so I imported the file into my project instead. It is now listed under the “Library Files” folder. All I need to do is to double click on it to run it.
Thank you for looking into that for me!
Thanks,
ZZippo
10-19-2016 11:57 AM
Sorry for the late reply…I just saw your question, then the answer too…
That is exactly what I have done! Nice one…
ZZippo