i used the registry functions provided below, the problem is when i write the registry it writes it but when i try to find it in the regedit it doesn't display it ? how come that be possible
VB Code:
Public Function Registry_Read(Key_Path, Key_Name) As Variant On Error Resume Next Dim Registry As Object Set Registry = CreateObject("WScript.Shell") Registry_Read = Registry.RegRead(Key_Path & Key_Name) End Function Public Sub Registry_Write(Key_Path As String, Key_Name As String, Key_Value As Variant, Optional Key_Type As String) On Error Resume Next Dim Registry As Object Dim Registry_Value As Variant Set Registry = CreateObject("WScript.Shell") Registry_Value = Registry_Read(Key_Path, Key_Name) If Key_Type = "" Then 'REG_SZ is the default. Registry.RegWrite Key_Path & Key_Name, Key_Value Else Registry.RegWrite Key_Path & Key_Name, Key_Value, Key_Type End If End Sub




Reply With Quote