Can any one tell me how to use a batch file to check a registry entry when it is run. If the registry entry is not what I want it to be then it will change it to the correct registry entry.

The exact example I need it for is checking in the HKCU part of the registry to check if the syncmode5 entry which controls whether internet explorer checks for a new page at every visit to a page is set not to automatic (value 4) but to always check (value 3).

Am I posting this in the correct forum and can anyone help. Thanks.