Showing results for 
Search instead for 
Do you mean 
Reply
Solved! Go to solution

Running executable via NX command prompt through an Excel Macro

I am trying to run a .exe file through NX command prompt and I would like to do it through excel. I know that you can run an executable through an excel macro using the following code

 

Sub LaunchExecutable()

RetVal = Shell("File Path here", 1)

End Sub

 However for using NX's CMD line I have no idea how to accomplish this.

 

Any help wpuld be appreciated.

1 REPLY
Solution
Solution
Accepted by topic author junfan
‎12-21-2015 11:54 AM

Re: Running executable via NX command prompt through an Excel Macro

call batch file that calls ugiicmd.bat then your executable

 

or set required env using 

Environment.SetEnvironmentVariable(envName, envValue)