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

  • Home
  • SEARCH
  • 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've one interface which has following method signatures: public interface ITag { int M_Id
I have a shared class which calls the following registry key which is used
I am Creating the Registry Key using following code: LPCTSTR lpNDS= TEXT(SOFTWARE\\myKEY); if(OK==ERROR_SUCCESS) {
I use JEditable for making edit field which following code: $(function() { $(.field).editable(http://localhost/index.php/welcome/update_record, {
I use the following which works perfectly in all browsers, except ie9 $result =
I found the following which shows how to delete an attribute from XML in
I have the following which works in SQL Query Analyzer . select oh.* from
I am using the following which works great. I am just wondering if it
I Have a object which the following field : boost::unordered_map<std::string, std::shared_ptr<Foo> > m_liste_; I
currently I have the following which parses a json api.. import simplejson import urllib2

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.