system()

Synopsis

This function is used to send commands to the operating system running the Intent Kernel, returning 0 unless there is an error in the input. The function may behave differently for different operating systems. Also see the createProcess() function.

Syntax

system ( command As String ) As Integer
Argument Type Description
command String The command string the operating system should execute.

Example 1

Intent >system("notepad")
--> 0 
Result: the function first brings up a DOS window, runs the notepad command from that window, which brings up the notepad program.

Example 2

Intent >system("cmd")
--> 0
Result: the function first brings up a DOS window. You may type DOS commands. Use "Exit" to close DOS window.