Java, convert Windows path to dos 8.3 format

Does anyone know of any java utility method that converts Windows paths to DOS 8.3 format? thank

+2


source to share


3 answers


Try this



+3


source


you can also use the GPL licensed Servertec Foundation Classes (SFC) which has stec.sfc.Win32.File :: getShortPathName () .



after all, parsing the output dir /X

might be the simplest solution.

+2


source


AFAIK, there is no "method" for such a "conversion". Only you can do extract from filytame 8.3 file (if exists on filesystem).

+1


source







All Articles