public String getResultExec(String exec)
    {
        beforeExecute(this);

        String result = "";
        boolean cekWindowsOSName = System.getProperty("os.name").contains("Windows");

        if(cekWindowsOSName)
        {

            Process p;
            BufferedReader input = null;
            try
            {
                p = Runtime.getRuntime().exec(exec);
                input = new BufferedReader(new InputStreamReader(p.getInputStream()));
                String line;
                while((line = input.readLine()) != null)
                {
                    result += line;
                }
            }
            catch(IOException ex)
            {
                ex.printStackTrace();
            }
            finally
            {
                if(input != null)
                {
                    try
                    {
                        input.close();
                    }
                    catch(IOException ex)
                    {
                        ex.printStackTrace();
                    }
                }
            }
        }
        else
        {
            javax.swing.JOptionPane.showMessageDialog(null, "Maaf... Sistem Operasi yang anda gunakan"
                    + " belum didukung oleh Parser Engine", "", 0);
        }

        afterExecute(this);

        return result;
    }