WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Registry
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

RegSetBin and Setting a Hex(7) Value

Keywords: 	   hex7

Question:

I'm trying to set a binary value in the registry on NT using RegSetBin.

When I export the portion of the registry I've changed to a REG file, the file indicates the value is of type "hex", but what I really want is a value of type "hex7".

What function do I use to set this value?

Answer:

Regsetex with type 7 does the job. For example this line sets it correctly.
   g=strcat("SYSTEM\CurrentControlSet\Services\", d,"\Parameters\Tcpip","[IPAddress]")          
   RegSetEx(@REGMACHINE, g, IP, @TAB, 7)

Article ID:   W14393
Filename:   RegSetBin and Hex7 Value.txt
File Created: 2000:02:01:18:20:54
Last Updated: 2000:02:01:18:20:54