I a need to execute a DOS command from within Simulation. What are my options?


You can use the "Tools" > "Run Macro" and call an application from JScript:

//**********
var command = "C:WINDOWSNOTEPAD.EXE";
var shell = new ActiveXObject("WScript.Shell");
shell.Exec(command);
//**********

You can also call application from a command snippet using the /SYS command.

This option will block the analysis until the child process terminates:

!**********
/sys,C:WINDOWSNOTEPAD.EXE
!**********

This option will spawn a new thread for the child process:

!**********
/sys,start C:WINDOWSNOTEPAD.EXE
!**********





Show Form
No comments yet. Be the first to add a comment!