Project

General

Profile

$exec » History » Version 1

Per Amundsen, 07/31/2017 08:49 PM

1 1 Per Amundsen
_Added in 2.9_
2
3
*$exec(filename, [nh], [arguments])*
4
5
Executes a program and returns the output, if any.
6
7
_This identifier will block the AdiIRC GUI until the executed program is closed._
8
9
*Parameters*
10
11
filename - Filename of the program to execute.
12
[nh] - n = minimize the window, h = hide the window.
13
[arguments] - Arguments to pass to the program.
14
15
*Example*
16
17
<pre>
18
; Print all files and folders in C:
19
alias testexec {
20
  var %output = $exec(cmd.exe, h, /c dir)
21
  var %s 0
22
  
23
  while (%s < $gettok(%output, 0, 10)) {  
24
    inc %s
25
    echo -ag $gettok(%output, %s, 10)
26
  }
27
}
28
</pre>