Setting a DWORD value with Win32:TieRegistry

Posted on 2011-10-13
Last Modified: 2012-05-12
I'm new to Perl and I'm writing a script that edits the registry, in specific, I need to set the value of Key


to 0x0000001

Any help?
Question by:jaxstorm
    LVL 4

    Expert Comment

    In run command enter "Regedit"
    then go to the location mentioned..


    In menu select edit --> new-->DWORD  value -- enter "EnableAutoTray" and modify and change value data as 1

    LVL 8

    Author Comment

    Erm, that's not going to gelp me with my perl script though..
    LVL 28

    Accepted Solution

    use Win32::TieRegistry qw(REG_DWORD);
    $Registry->{"HKEY_CURRENT_USER/Software/Microsoft/Windows/CurrentVersion/Explorer/EnableAutoTray"} = [ "0x0000001", REG_DWORD() ];

    Open in new window

    LVL 8

    Author Closing Comment

    perfect, thanks

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    On Microsoft Windows, if  when you click or type the name of a .pl file, you get an error "is not recognized as an internal or external command, operable program or batch file", then this means you do not have the .pl file extension associated with …
    There are many situations when we need to display the data in sorted order. For example: Student details by name or by rank or by total marks etc. If you are working on data driven based projects then you will use sorting techniques very frequently.…
    Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    732 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    26 Experts available now in Live!

    Get 1:1 Help Now