system.os
Syntax
- lret := system.os(s<,i>)
The contents of string s is sent to an operating system instance for execution. On the Windows platform this will be interpreted as a general DOS command. Output sent to stdout during processing is collected and returned in the string lret.
By default the process spawned will run synchronously, and the code will wait 30 seconds before killing the process and continuing. If the optional argument i is provided, it indicates the number of seconds to wait before stopping. If i is 0, the process will be launched independently and the function will return immediately. If i is less than 0, then the function will wait indefinitely.
Returns: slret - a list. Arguments: s - String sent to the os as a command.
Was this helpful? ... | 3DEC © 2019, Itasca | Updated: Feb 25, 2024 |