Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 204625
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T17:29:03+00:00 2026-05-11T17:29:03+00:00

Which of the following registry scripts is syntactically correct? Will both work? Is one

  • 0

Which of the following registry scripts is syntactically correct? Will both work? Is one preferred?

Sample A:

REGEDIT4

[HKEY_LOCAL_MACHINE\software\microsoft\windows\currentversion\policies\explorer]
"nodrivetypeautorun"=255

Sample B:

REGEDIT4

[HKEY_LOCAL_MACHINE\software\microsoft\windows\currentversion\policies\explorer]
"nodrivetypeautorun"=dword:000000FF

Technically, in this example, the “nodrivetypeautorun” element is a dword data type. I don’t want to fixate on the “nodrivetypeautorun” element. I am only concerned about dword data types and the proper way to set them in a registry script.

I think that Sample A will fail to import the value, and I think I can prove it. What I need is a reference online that will back me up because some people that I work with won’t take my word for it, even if I demonstrate the problem. I’ve spent some time with google and can’t find what I’m looking for. The preferred answer to this question should have such a reference, but I’d settle for a general consensus from other professionals.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T17:29:03+00:00Added an answer on May 11, 2026 at 5:29 pm

    The MS Knowledgebase has an article on this.

    http://support.microsoft.com/kb/310516/

    Here’s the excerpt you’d be interested in:

    Syntax of .Reg Files A .reg file has
    the following syntax:

    RegistryEditorVersion Blank line
    [RegistryPath1]
    “DataItemName1″=”DataType1:DataValue1″
    DataItemName2″=”DataType2:DataValue2”
    Blank line [RegistryPath2]
    “DataItemName3″=”DataType3:DataValue3”

    So it would seem the ‘official’ way to set a value includes specifying the ‘DataType’, in your case ‘dword’.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am Creating the Registry Key using following code: LPCTSTR lpNDS= TEXT(SOFTWARE\\myKEY); if(OK==ERROR_SUCCESS) {
I need to solve the following question which i can't get to work by
let us have a situation in which the following program prints some 10 lines
By default the webjump hotlist has the following which I use quite often: M-x
Which of the following has the best performance? I have seen method two implemented
Which of the following is better code in c# and why? ((DateTime)g[0][MyUntypedDateField]).ToShortDateString() or DateTime.Parse(g[0][MyUntypedDateField].ToString()).ToShortDateString()
Which of the following is better? a instanceof B or B.class.isAssignableFrom(a.getClass()) The only difference
I have the following interface which I'm trying to make COM-visible. When I try
I have the following class which uses BinaryReader internally and implements IDisposable. class DisposableClass
I have the following C# which simply replaces parts of the input string that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.