你可能要用到windows的资源管理器的API。
System.getProperty("user.dir");
File tFile = new File(""); tFile.getAbsolutePath();
一样直接去读这个文件名啊