| View previous topic :: View next topic |
| Author |
Message |
marcelo Contributor


Joined: 10 May 2008 Posts: 155
|
Posted: Wed Jul 23, 2008 3:50 am Post subject: Save data to registry... |
|
|
Hi, im trying to replace this "config.reg" with the use of VDS´s REGISTRY command but i have no success. This is the . reg file:
-----------------
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\MARCELO\Tools\Config]
"Version"="2.0"
"Data"=hex:b1,a2,c1,b4,4b
------------------
If i use:
registry write,LOCAL,"SOFTWARE\MARCELO\Tools","Version","2.0"
it works fine...
But i cant place the hex using:
registry write,LOCAL,"SOFTWARE\MARCELO\Tools","Data",b1|a2|c1|b4|4b,binary
this last command works good but only place b1 in registry not all data value....
What im doing wrong?
Thanks a lot....
Marcelo |
|
| Back to top |
|
 |
marcelo Contributor


Joined: 10 May 2008 Posts: 155
|
Posted: Wed Jul 23, 2008 4:24 pm Post subject: |
|
|
Problem SOLVED!!
I solve this problem by using a HEX2DEC function to entre values to registry....
thanks.. |
|
| Back to top |
|
 |
vdsalchemist Admin Team

Joined: 23 Oct 2001 Posts: 1448 Location: Florida, USA
|
Posted: Fri Jul 25, 2008 2:26 pm Post subject: |
|
|
marcelo,
Shouldn't you have been able to do the following?
registry write,LOCAL,"SOFTWARE\MARCELO\Tools","Data",$000000B1A2C1B44B,LARGEINT
Or if you wanted to keep the registry type as Binary you would need to do this if you have not changed the default field separator.
registry write,LOCAL,"SOFTWARE\MARCELO\Tools","Data",$B1|$A2|$C1|$B4|$4B,BINARY
If you have changed the default field separator then use @fsep() inplace of the |'s above. _________________ Home of
Give VDS a new purpose!
 |
|
| Back to top |
|
 |
marcelo Contributor


Joined: 10 May 2008 Posts: 155
|
Posted: Sat Jul 26, 2008 10:03 pm Post subject: |
|
|
OK, tanks a lot!!!
I wil try this too because is more simple than my old solution....
Thanks again!! |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|