Skip to main content
14-Alexandrite
January 19, 2021
Solved

Using the environment variable In the custom menu

  • January 19, 2021
  • 1 reply
  • 5094 views

Hello community,

 

In the custom menu , i want to use the environment variable %JAVA_HOME% may also to be use lax.nl.env.path variable. Could you please tell me How to call that from the "Customize User Button" windows?

 

Windchill RV&S 12.3.1


Any tips well be very welcome

 

Regards

Zeiad

Best answer by IvyZhuang

Hi Zeiad,

 

Environment variable cannot be used in "Customize User Button".

You can refer to CS175170 for the details.

 

Regards,

Ivy 

1 reply

IvyZhuang17-PeridotAnswer
17-Peridot
January 22, 2021

Hi Zeiad,

 

Environment variable cannot be used in "Customize User Button".

You can refer to CS175170 for the details.

 

Regards,

Ivy 

14-Alexandrite
January 22, 2021

Hi @IvyZhuang 

 

Thanks for your reply.

I was hoping that we could use .

 

Regards

Zeiad

17-Peridot
August 5, 2021

Hi Zeiad,

I am using this script behind a custom command ("wscript runReport.vbs")

 

runReport.vbs:

Set WshShell = CreateObject("WScript.Shell")
cmds=WshShell.RUN("im runreport --hostname=%MKSSI_HOST% --user=%MKSSI_USER% --port=%MKSSI_PORT% --issues=%MKSSI_ISSUE0% --param=username=%MKSSI_USER% -g """&WScript.Arguments(0)&"""", 0, False)
Set WshShell = Nothing

 

And yes, I  am using environment variables.

Does this help somehow?