### Windows Query Registry

To query the Windows Registry, use the jShell Library.
Example Reading the Country Setting from the Windows Registry
`Sub mnuShellRegQuery_Action
Dim shl As Shell
Dim params As List: params.Initialize
params.Add("query")
params.Add("""HKCU\Control Panel\International""")
params.Add("/v")
params.Add("sCountry")
shl.Initialize("shl", "reg.exe", params)
Try
shl.Run(-1)
Catch
Log(LastException.Message)
End Try
End Sub`
`Sub shl_ProcessCompleted (Success As Boolean, ExitCode As Int, StdOut As String, StdErr As String)
Dim strResult As String
If Success AND ExitCode = 0 Then
strResult = "Shell process completed successfully."& CRLF & "Result:" & CRLF & StdOut
Else
strResult = "Shell process NOT completed."& CRLF & "Error: " & CRLF & StdErr
End If
writeOutput(False, strResult)
Log(strResult)
' ExitApplication
End Sub`
' Write the shell output to a textarea (txtOutput)
`Sub writeOutput(bClear As Boolean, strInfo As String)
If bClear Then txtOutput.Text = ""
If txtOutput.Text.Length > 0 Then
txtOutput.Text = txtOutput.Text & CRLF & strInfo
Else
txtOutput.Text = strInfo
End If
End Sub`

Changed: , Category: Shell, File: T6C248M1796.htm, ID: 1796