Can I know what are the differences between each Exec, ExecWait, ExecShell, nsExec::Exec, nsExec::ExecToLog, nsExec::ExecToStack, ExecDos and ExecCmd, as in when to use which?
I 've posted the various execute calls I know. I am trying to make a comprehensive list, so that it helps future visitors..
Exec: Plainly execute the called string, be it some application, console or file.ExecWait: Executes likeExecbut waits till the process exits.ExecShell: What is it for?nsExec::Exec: Just likeExecorExecWaitbut only for command prompt and that too without opening the console window. I am unsure if it waits for process to exit. DoesnsExec::Execwait for child process to exit?nsExec::ExecToLog:The documentation says ExecToLogis similar to plainnsExecbut it outputs to log window. What does that mean, what is a log window?nsExec::ExecToStack: The documentation saysExecToStackis similar to plainnsExecbut it pushes output to stack. I get that.ExecDos: Same asnsExec::ExecToStackbut it additionally (Is it not?)a. takes string parameter that serves as stdin for running application.
b. works in both sync/async mode.
c. it works out of section - for .onInit check outs.
ExecCmd: Same asExecDosbut it doesn't require theseExpandEnvStrings $3 %COMSPEC% ExecDos::exec /Cparts. Am I correct?