import java.io.File; public class GetCurrentDirectory { public String GetDirectory()
{
File directory = new File("");
return directory.getAbsolutePath();
}
}
GetCurrentDirectory gcd = new GetCurrentDirectory();
String strLuJing = gcd.GetDirectory(); File f = new File(strLuJing);
ListXls lx = new ListXls();
lx.print(f);