Jump to content

Help with REG_MULTI_SZ


Recommended Posts

This is what I have below. But something isn't correct. The key never shows. I have searched all over and read the help but it is still not working.

RegWrite ("HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows Live\Photo Gallery\Library" ,"DontShowAssociationsDialogExtensions","REG_MULTI_SZ","line1" & .WDP & "line2" & .BMP & "line3" & .JFIF)

Multi-String Value
HKEY_CURRENT_USER\Software\Microsoft\Windows Live\Photo Gallery\Library

 DontShowAssociationsDialogExtensions

 .WDP
.BMP
.JFIF
.JPEG
.JPE
.JPG
.PNG
.TIF
.DIB
.TIFF
.ICO

Link to comment
Share on other sites

You could probably improve upon that, by assigning the main reg key to a variable, and then writing to it for each extension using something like a For...Next loop. Each extension would be the value of another variable (i.e. $ext). You could pass the extensions as a pipe delimited string and use something like the StringSplit command.

Make sure brain is in gear before opening mouth!
Remember, what is not said, can be just as important as what is said.

Spoiler

What is the Secret Key? Life is like a Donut

If I put effort into communication, I expect you to read properly & fully, or just not comment.
Ignoring those who try to divert conversation with irrelevancies.
If I'm intent on insulting you or being rude, I will be obvious, not ambiguous about it.
I'm only big and bad, to those who have an over-active imagination.

I may have the Artistic Liesense ;) to disagree with you. TheSaint's Toolbox (be advised many downloads are not working due to ISP screwup with my storage)

userbar.png

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...