I have a dll called isapi_redirect.dll, I trying to see if there is any way in Java to read the Dll version for some validation?
Is there a work around or a hack to read the dll version?.
I Google it and did not find a direct way of doing it. There are third party tool that let you read the version..
Any suggestion? tryng to write a junittest.
Also, instead of redirecting to a file and then read from that file, you can read from the process directly:
The call to p.waitFor() could probably be replaced by p.exitValue() because the process should have ended; after all, its input and error streams are both closed (no more data from the reader). Still, I prefer to use waitFor() just in case those streams get closed but the process still continues.