Skip to main content
tag cleanup; left both windows & windows-7 because it may apply more broadly than win 7
Link
added 48 characters in body
Source Link
added 48 characters in body
Source Link

Various Windows applications such as Matlab, Altair, Nastran etc use license servers, which updaterequire a system environment variable - LM_LICENSE_FILE, to be updated which would take a value along the lines of: %MSC_LICENSE_FILE%;%MATLAB_LICENSE_FILE%;%ALTAIR_LM_LICENSE_FILE% (if these 3 apps were installed).

Setting the variable for the individual apps using SETX is easy:

SETX MATLAB_LICENSE_FILE PORT@SERVER /M

But how would I set the LM_LICENSE_FILE variable to reflect the apps installed on a pc that reference this variable using a .cmd file? Ideally it would query the pc to see what apps (apps that use LM_LICENSE_FILE environment variables) are installed, set the individual app system environment variable and then set the correct LM_LICENSE_VARIABLE value.

Regards and thanks in advance

Various Windows applications such as Matlab, Altair, Nastran etc use license servers, which update a system environment variable - LM_LICENSE_FILE, which would take a value along the lines of: %MSC_LICENSE_FILE%;%MATLAB_LICENSE_FILE%;%ALTAIR_LM_LICENSE_FILE%.

Setting the variable for the individual apps using SETX is easy:

SETX MATLAB_LICENSE_FILE PORT@SERVER /M

But how would I set the LM_LICENSE_FILE variable to reflect the apps installed on a pc that reference this variable using a .cmd file? Ideally it would query the pc to see what apps (apps that use LM_LICENSE_FILE environment variables) are installed, set the individual app system environment variable and then set the correct LM_LICENSE_VARIABLE value.

Regards and thanks in advance

Various Windows applications such as Matlab, Altair, Nastran etc use license servers, which require a system environment variable - LM_LICENSE_FILE, to be updated which would take a value along the lines of: %MSC_LICENSE_FILE%;%MATLAB_LICENSE_FILE%;%ALTAIR_LM_LICENSE_FILE% (if these 3 apps were installed).

Setting the variable for the individual apps using SETX is easy:

SETX MATLAB_LICENSE_FILE PORT@SERVER /M

But how would I set the LM_LICENSE_FILE variable to reflect the apps installed on a pc that reference this variable using a .cmd file? Ideally it would query the pc to see what apps (apps that use LM_LICENSE_FILE environment variables) are installed, set the individual app system environment variable and then set the correct LM_LICENSE_VARIABLE value.

Regards and thanks in advance

Source Link
Loading