none
Import dword via a decimal value in a .reg script RRS feed

  • Question

  • Using a .reg file registry script to import a dword value, it is possible to specify a decimal value instead of a hex value? e.g. ...

    This --

    ;Hide the page file PAGE P:  (32768 = 00008000 hex)
    [HKEY_LOCAL_MACHINE/Software/Microsoft/Windows/CurrentVersion/Explorer]
    "NoDrives"=dword:32768 (specify that this is a decimal value in some manner?)

    Instead of the usual hex default --

    ;Hide the page file PAGE P:  (32768 = 00008000 hex)
    [HKEY_LOCAL_MACHINE/Software/Microsoft/Windows/CurrentVersion/Explorer]
    "NoDrives"=dword:00008000

    Monday, October 12, 2015 6:36 AM

Answers

  • At the risk of encouraging bad behavior, I believe OP is unaware that the radial bubble in the registry allows you to toggle between hex and dec for input convenience only. The result is stored as a 32-bit integer regardless.



    Mike Crowley | MVP
    My Blog -- Baseline Technologies

    Tuesday, October 13, 2015 1:11 AM

All replies