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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.