Java Shell Command runCommand(String s)

Here you can find the source of runCommand(String s)

Description

run Command

License

Open Source License

Declaration

public static void runCommand(String s) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.io.IOException;

public class Main {
    public static void runCommand(String s) {
        try {/*from  w w w .j a v  a 2 s  .  c  o m*/
            Runtime.getRuntime().exec(s);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}

Related

  1. runCommand(String command)
  2. runCommand(String command)
  3. runCommand(String command, String args, String file)
  4. runCommand(String command[])
  5. runCommand(String program, ArrayList args)
  6. runCommand(String[] args)
  7. runCommand(String[] args)
  8. runCommand(String[] cmdArray, String extraPath, String libPath)
  9. runCommand(String[] command)