DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

GET Diadem installation Path from Batch

Solved!
Go to solution

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

 

0 Kudos
Message 1 of 4
(2,646 Views)

Hi Martin,

 

the variable ProgramDrv specifies the path and the folder where DIAdem is installed.

 

gemu

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

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

0 Kudos
Message 3 of 4
(2,583 Views)
Solution
Accepted by topic author iparra

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

 

 

 

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