Ask Experts Questions for FREE Help!
 

Free Answers in 3 Easy Steps

Register Now
3 Steps
 


Ask QuestionsprogressAnswer QuestionsprogressBuild ReputationprogressBecome an Expert
 
At Ask Me Help Desk you can ask questions in any topic and have them answered for free by our experts. To ask questions or participate in answering them you must register for a free account. By registering you will be able to:
  • Get free answers from experts in any of our 300+ topics.
  • Accept money for answers that you provide.
  • Communicate privately with other members (PM).
  • See fewer ads.
  Answer this Question    Ask about Visual Basic    Ask about another Subject  
 

1065518
Jul 22, 2009, 08:06 AM
I need help writing an array to populate the RegLocate and RegLocate1 variables. I have all the information in a spreadsheet. It's only 54 keys, so the information can be directly in the script. I have been trying for several days, and just can't get it to work. The basic script is below. It works if I put the specific variables in, but I would have to do it one at a time, and that defests the purpose. Thanks for any help

Dim objShell, RegLocate, RegLocate1
Set objShell = WScript.CreateObject("WScript.Shell")
On Error Resume Next
RegLocate = ""
objShell.RegWrite RegLocate,"","REG_DWORD"
WScript.Quit