RegSetDword and Hex Values
Keywords: RegSetDword
Question:
Running Winbatch 99c on a WinNT 4.0 sp3 server.Have the following line of code within a registry update script (compiled):
RegSetDword (@REGMACHINE,"system\currentcontrolset\control\timezoneinformation[ActiveTimeBias]", 0x168)I get the following error message when I run this compiled script on a WinNT 4.0 sp4 server: 3066: Wrong Number of Arguments in Function. I have also attempted to wrap the value within quotes, but it gives me a different error message.Any clue?
Answer:
WinBatch does not do hex. Try...RegSetDword (@REGMACHINE,"system\currentcontrolset\control\timezoneinformation[ActiveTimeBias]", 360)
Article ID: W14167Filename: RegSetDword and Hex.txt