sys_shell_result Function

Syntax

C sys_shell_result(C command_line )

Arguments

command_lineCharacter

The program to run, including additional arguments for the program. Arguments used by the program are separated by space characters:

program_name [argument1 ... argumentN]

Returns

resultCharacter

Returns any text output to stdout while running the program.

Description

Executes a 'command line' command and returns the result.

Discussion

The sys_shell_result() function runs an executable on the command line, returning the result of the execution. Unlike sys_shell(), Alpha Anywhere waits until the sys_shell_result() function finishes running before executing the next Xbasic statement in your script.

dim ipconfig_info as c
ipconfig_info = sys_shell_result("ipconfig")

See Also