Sayali Dehedkar - 2012-06-12

I am using j-interop to get registry entry of a remote machine. For this I am using winreg_QueryValue method of IJIWinReg. I get the byte array as output with index at 0th position (I am not sure if it if index) and value in bytes at 1st position.

However, the data value of that registry entry contains an environment variable and it is coming as a string "%System Root%" in the output, I want to get it evaluated in the output instead of string e.g. if %System Root% = C: then output should contain "C:" instead of "%System Root%".

Any pointers would be of great help!!
Thanks in advance.