10-16-2017 06:12 AM
Hi all,
I have managed to start Diadem from batch using the following line:
"C:\Program Files\National Instruments\DIAdem 2015\DIAdem.exe"
"/cScriptStart('C:\ProgramData\National Instruments\DIAdem\Plugins\myScript.vbs')"
The problem is that if I want to share my application, some users might have Diadem installed in another path. How can I get the location of DIAdem.exe from batch?
Any comment or suggestion is welcome.
Thank you in advance,
Martin
Solved! Go to Solution.
10-18-2017 03:54 AM
Hi Martin,
the variable ProgramDrv specifies the path and the folder where DIAdem is installed.
gemu
10-19-2017 03:37 AM
Hi Gemu,
I appreciate your answer, but I'm afraid that's not what I was looking for. I want to get the path FROM BATCH.
Thank you anyway
Martin
10-19-2017 03:40 AM
I managed to do this approach:
Running this in a .bat file will show the following
@echo off
dir c:\DIAdem.exe /s /b
c:\Program Files\National Instruments\DIAdem 2015\DIAdem.exe
c:\Program Files (x86)\National Instruments\DIAdem 2015\DIAdem.exe