setShell( "CMD.EXE" ); setShellArgs( new String[] { "/X", "/C" } );
setShell( new CmdShell() );
    private void setDefaultShell()    {        String os = System.getProperty( OS_NAME );        //If this is windows set the shell to command.com or cmd.exe with correct arguments.        if ( os.indexOf( WINDOWS ) != -1 )        {            if ( os.indexOf( "95" ) != -1 || os.indexOf( "98" ) != -1 || os.indexOf( "Me" ) != -1 )            {                setShell( "COMMAND.COM" );                setShellArgs( new String[] { "/C" } );            }            else            {                setShell( "CMD.EXE" );                setShellArgs( new String[] { "/X", "/C" } );            }        }    }