From Java, I extract the executable to the location indicated by File.createTempFile (). When I try to run my executable, my program freezes when it tries to read the first line of output.
I found that if I try to run the same extracted executable from another program, it will work if I specify the directory as C: \ Documents and Settings \ username \ Local Settings \ Temp \ prog.exe. But if I specify the directory as C: \ DOCUME ~ 1 \ USERNA ~ 1 \ LOCALS ~ 1 \ Temp \ prog.exe, I get a hang.
Is there a way to untie the tilde file name in my program so that I can specify the directory name that will work?
(And since I always like problems with the language and design of the API, is there any reason Java File.createTempFile () and java.io.tmpdir should evaluate garbled file names?)
java windows filenames name-mangling
skiphoppy
source share