|
-
Dec 10th, 2014, 02:41 PM
#1
Thread Starter
New Member
Writing to a reg_multi_sz key from a text file
I have a text file which contains a listing of websites, one per line. This text file varies depending on department, so I cannot have the sites hard coded into my script. The script has to read the text file on every PC. The text file exists at c:\StartPages.txt
sample contents of text file:
http://www.site1.com
http://www.site2.com
http://www.site3.com
http://www.site4.com
I need to write this to a reg_multi_sz type registry key. I have read tons, and still not come up with code which works correctly.
no worries about error checking, or does the key exist etc. I have that all worked out already.
I need to write this to the following key:
HKCU\SOFTWARE\MICROSOFT\INTERNET EXPLORER\MAIN
INTO THE "SECONDARY START PAGES" KEY
Thanks to anyone who responds, I do appreciate your time.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|