Function to Update , Create and Read Registry in Local Machine

 

 

 

 

 

 

 

 

 

 

#usage

 

 

 

 

# Call the Function by passing the Registry Key , Value Name , Value Data , Type"

 

 

 

# This Function Create/Update the Exitng value

 

 

 

# Regupdate "HKEY_LOCAL_MACHINE\SOFTWARE\TEST" "E2" "0" "Dword"

 

 

 

# Regupdate "HKEY_LOCAL_MACHINE\SOFTWARE\TEST" "E2" "0" "Dword"

 

 

 

# Regupdate "HKEY_LOCAL_MACHINE\SOFTWARE\TEST" "Entry" "Newupdate"

 

 

 

# Pass "Null" for the Third Argument while calling the Function if you want to retive the Registry Value Data"

 

 

 

# Regupdate "HKEY_LOCAL_MACHINE\SOFTWARE\TEST" "Entry" "Null"