String cmd = "ls -al"; Runtime run = Runtime.getRuntime(); Process pr = run.exec(cmd); pr. ... 14, 08 · Java Zone · Code Snippet. Like (2).
確定! 回上一頁