Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Read in Text File and replace large portion of text?

Status
Not open for further replies.

KingPacino

Programmer
Joined
Jul 21, 2003
Messages
53
Location
GB
I have a .reg file which holds several variables one of which is a Search Path which has lots of different paths.

The program I have written populates a TextBox from a checkboxlist which holds the paths so the ones selected appear in the TextBox. I want the Search Path in the .reg file to show the paths selected in the TextBox.

How can I replace these search paths in the .reg file to show the selected paths which are in the TextBox?

Once the file has been updated the program gives the user a download option to then update the registry with this file.

Is this the best way, I have read a little about registry manipulation perhaps this would be better?

Any thoughts or ideas would be greatly appreciated.

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top