Java is intended to be cross-platform, so where a particular platform takes a big diversion from what is shared, it tends to pass on implementing that functionality. There may be something in the
Windows API you could use. Maybe use
Runtime.exec() to invoke "dir" and get what you want.