AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

Programmatically Create a Reg File

Ein Thema von mohfa · begonnen am 30. Mai 2009 · letzter Beitrag vom 30. Mai 2009
Antwort Antwort
mohfa

Registriert seit: 11. Feb 2007
97 Beiträge
 
Delphi 7 Enterprise
 
#1

Programmatically Create a Reg File

  Alt 30. Mai 2009, 23:19
Hi every one , i have this Reg File Format :

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\test]

[HKEY_LOCAL_MACHINE\SOFTWARE\test\profile]
"P"=hex:7a,62,75,73,6e
"M"=hex:34,4f,35,35,37,37,53,36,34,53,34,38,31,35, 50,50,32,34,33,53,51,\
34,38,4e,4f,38,51,51,35,35,4e,4f

and these Values may not be found in the Registry


What i want is how could i prorammatically generate a Reg File with the same Value , i mean from my program i can save a TStringslist ( for example ) into : test.Reg

I don'y want to read from Registry then Save contents into test.reg but all values are created from my Program .


and thanks again .
  Mit Zitat antworten Zitat
Benutzerbild von jaenicke
jaenicke

Registriert seit: 10. Jun 2003
Ort: Berlin
9.332 Beiträge
 
Delphi 11 Alexandria
 
#2

Re: Programmatically Create a Reg File

  Alt 30. Mai 2009, 23:30
Well, you have the values as String at the moment? Then you could use BinToHex to generate the hexadecimal string. Then you only have to insert the comma as separator every two characters, that's it.

The rest is string concatenation, which is not the problem I believe?
Sebastian Jänicke
Alle eigenen Projekte sind eingestellt, ebenso meine Homepage, Downloadlinks usw. im Forum bleiben aktiv!
  Mit Zitat antworten Zitat
Antwort Antwort


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 21:20 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz