try{
String cmd="cmd /c start D://working//test.bat";
Process process = Runtime.getRuntime().exec(cmd);
int i=process.waitFor();
System.out.println("i="+i);
}catch(Exception e)
{
e.printStackTrace();
}
test.bat
@echo off
copy D:/study/photo/100SSCAM/*.* d:/working/temp
exit