2002-09-05 16:31:16 +00:00
|
|
|
nsExec
|
|
|
|
------
|
|
|
|
nsExec will execute command-line based programs and capture the output
|
|
|
|
without opening a dos box.
|
|
|
|
|
2002-10-01 22:09:53 +00:00
|
|
|
|
2002-09-05 16:31:16 +00:00
|
|
|
Usage
|
|
|
|
-----
|
2002-09-21 18:49:49 +00:00
|
|
|
nsExec::Exec [/TIMEOUT=x] path
|
2002-09-05 16:31:16 +00:00
|
|
|
|
|
|
|
-or-
|
|
|
|
|
2002-09-21 18:49:49 +00:00
|
|
|
nsExec::ExecToLog [/TIMEOUT=x] path
|
2002-09-05 16:31:16 +00:00
|
|
|
|
|
|
|
Both functions are the same except ExecToLog will print the output
|
|
|
|
to the logwindow.
|
|
|
|
|
|
|
|
The timeout value is optional and is used to set the time in
|
2002-10-01 22:09:53 +00:00
|
|
|
milliseconds for the plugin to wait for the process to return
|
2002-10-02 16:00:18 +00:00
|
|
|
before it quits, or the time in milliseconds for the plugin
|
|
|
|
to wait for output to come out before it quits if using
|
|
|
|
ExecToLog. The default is no timeout.
|
2002-09-05 16:31:16 +00:00
|
|
|
|
2002-10-01 22:09:53 +00:00
|
|
|
|
2002-09-05 16:31:16 +00:00
|
|
|
Return Value
|
|
|
|
------------
|
|
|
|
If nsExec is unable to execute the process, it will return "error"
|
2002-10-01 22:09:53 +00:00
|
|
|
on the top of the stack, else it returns the return code from the
|
|
|
|
executed process.
|
2002-09-05 16:31:16 +00:00
|
|
|
|
|
|
|
|
2002-10-01 22:09:53 +00:00
|
|
|
Copyright Info
|
|
|
|
--------------
|
|
|
|
Copyright (c) 2002 Robert Rainwater
|
|
|
|
Thanks to Justin Frankel and Amir Szekely
|