my dad wants to list the MSDOS short file names: i.e. afilename.txt = afilenam~.txt
I know that the java.io.File does not implement a method for returning such a short name. Is there any MSDOS-FILE-API able to do that. Is there any algoriothm to compute the short filename from the long one?
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.