cancel
Showing results for 
Search instead for 
Did you mean: 

Running executable via NX command prompt through an Excel Macro

Valued Contributor
Valued Contributor

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

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

Phenom
Phenom

call batch file that calls ugiicmd.bat then your executable

 

or set required env using 

Environment.SetEnvironmentVariable(envName, envValue)