Project

General

Profile

Actions

$exec » History » Revision 1

Revision 1/4 | Next »
Per Amundsen, 07/31/2017 08:49 PM


Added in 2.9

$exec(filename, [nh], [arguments])

Executes a program and returns the output, if any.

This identifier will block the AdiIRC GUI until the executed program is closed.

Parameters

filename - Filename of the program to execute.
[nh] - n = minimize the window, h = hide the window.
[arguments] - Arguments to pass to the program.

Example

; Print all files and folders in C:
alias testexec {
  var %output = $exec(cmd.exe, h, /c dir)
  var %s 0

  while (%s < $gettok(%output, 0, 10)) {  
    inc %s
    echo -ag $gettok(%output, %s, 10)
  }
}

Updated by Per Amundsen over 7 years ago · 1 revisions

Also available in: PDF HTML TXT