SHELL


Sends a command to the system command interpreter

Syntax:
declare function Shell ( byref command as const string ) as long

Usage:
result = Shell( command )

Parameters:
command
A string specifying the command to send to the command interpreter.

Return Value:
If the command could not be executed, -1 is returned. Otherwise, the command is executed and its exit code is returned.

Description:
Program execution will be suspended until the command interpreter exits.

Examples:
'e.g. for windows:
Shell "dir c:*.*"

'e.g. for linux:
Shell "ls"


Platform Differences:

Differences from QB:
See also:
Back to Operating System Functions
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki



sf.net phatcode