I want to call cmd command in java code. I say:
String str ="C:/uploaded_files/111.txt";
Process process = Runtime.getRuntime().exec(new String[]{"cmd.exe", "/c",str});
System.out.println(str);
And dont get 111.txt
. Its strange because when this code was in jsp
all works fine. What can be wrong?