anyone knows any java utility method that would convert windows paths to DOS 8.3 format ? thanks
试试这个
you could also use the GPL-licensed Servertec Foundation Classes (SFC) , which have a stec.sfc.Win32.File::getShortPathName() .
in the end, parsing the output of dir /X
might be the easiest solution.
AFAIK, there is no "method" for such "conversion". Only you can do is retrieve from filesytem 8.3 filename variant (if exists in filesystem).
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.