Executes the named command.

public static string ExecuteCommand( 
string cmd 
)

Parameters

cmd

Type: string

The name of the command.

Return Value

Text that indicates whether the command succeeded, and if it failed, the reason.