Execute Shell Command From Java ; 1. ; 2. String cmd = "ls -al"; ; 3. Runtime run = Runtime.getRuntime(); ; 4. Process pr = run.exec(cmd); ; 5. pr.
確定! 回上一頁