package cn.bj.reboot;import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.RandomAccessFile;public class reboot {
static String filename = "D:\\reboot.bat";
public static void main(String[] args) {
 create();
 going();
}
public static void create(){

File file = new File(filename);
RandomAccessFile raf = null;

try {
raf = new RandomAccessFile(filename,"rw");
String closed = "shutdown -s -t 30";
raf.writeBytes(closed);
} catch (FileNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}

}
public static void going(){
Runtime rt = Runtime.getRuntime();
try {
rt.exec(filename);
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}
运行时报错java.io.IOException: Cannot run program "D:\reboot.bat": CreateProcess error=32, ?í??????ò????????????????
at java.lang.ProcessBuilder.start(ProcessBuilder.java:459)
at java.lang.Runtime.exec(Runtime.java:593)
at java.lang.Runtime.exec(Runtime.java:431)
at java.lang.Runtime.exec(Runtime.java:328)
at cn.bj.reboot.reboot.going(reboot.java:35)
at cn.bj.reboot.reboot.main(reboot.java:12)
Caused by: java.io.IOException: CreateProcess error=32, ?í??????ò????????????????
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(ProcessImpl.java:81)
at java.lang.ProcessImpl.start(ProcessImpl.java:30)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:452)
... 5 more
这个代码相信都看的懂  我在D盘创建的reboot.bat成功了 然后只走going()方法也成功运行了reboot.bat
但是一起运行的时候就报出这个错误,请教达人告诉我原因