LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Relative path

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

0 Kudos
Message 1 of 4
(4,554 Views)

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...

Thanks,
Justin, Applications Engineer
0 Kudos
Message 2 of 4
(4,480 Views)

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 itSmiley Happy.

 

Thank you for looking into that for me!

 

Thanks,

ZZippo

0 Kudos
Message 3 of 4
(4,312 Views)

Sorry for the late reply…I just saw your question, then the answer tooSmiley Very Happy

That is exactly what I have done! Nice oneSmiley Very Happy

ZZippo

0 Kudos
Message 4 of 4
(2,943 Views)