CDE
This commit is contained in:
parent
518da4a923
commit
764da6cbbb
6144 changed files with 83610 additions and 11 deletions
|
|
@ -0,0 +1,15 @@
|
|||
import java.util.Scanner;
|
||||
import java.io.*;
|
||||
|
||||
public class Program {
|
||||
public static void main(String[] args) {
|
||||
try {
|
||||
Process p = Runtime.getRuntime().exec("cmd /C dir");//Windows command, use "ls -oa" for UNIX
|
||||
Scanner sc = new Scanner(p.getInputStream());
|
||||
while (sc.hasNext()) System.out.println(sc.nextLine());
|
||||
}
|
||||
catch (IOException e) {
|
||||
System.out.println(e.getMessage());
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue