AJ.DOS.TASK

Executes program in MS DOS.

AJ.DOS.TASK(<modification> NAME, ARG, RES)

<modification> - set a regime of the program start. Parameter is not obligatory. Can take following values:

SPAWN_W – wait for ending

SPAWN_N – not wait for ending

SPAWN_D – start a process and disconnect

NAME - path to the program

ARG - Dynamic array of arguments list. Number of arguments from 0 to 3th inclusive.

RES – Code of the result

noerr No Errors 0
noerr No Errors 1
E2BIG Argument list too long 7
EACCES Permission denied 13
EAGAIN No more processes or not enough memory or maximum nesting level reached 11
EBADF Bad file number 9
ECHILD No spawned processes 10
EDEADLOCK Resource deadlock would occur 36
EDOM Math argument 33
EEXIST File exists 17
EINVAL Invalid argument 22
EMFILE Too many open files 24
ENOENT No such file or directory 2
ENOEXEC Exec format error 8
ENOMEM Not enough memory 12
ENOSPC No space left on device 28
ERANGE Result too large 34
EXDEV Cross-device link 18