forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Save data to registry...

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
marcelo
Contributor
Contributor


Joined: 10 May 2008
Posts: 155

PostPosted: Wed Jul 23, 2008 3:50 am    Post subject: Save data to registry... Reply with quote

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
View user's profile Send private message
marcelo
Contributor
Contributor


Joined: 10 May 2008
Posts: 155

PostPosted: Wed Jul 23, 2008 4:24 pm    Post subject: Reply with quote

Problem SOLVED!!
I solve this problem by using a HEX2DEC function to entre values to registry....
thanks..
Back to top
View user's profile Send private message
vdsalchemist
Admin Team


Joined: 23 Oct 2001
Posts: 1448
Location: Florida, USA

PostPosted: Fri Jul 25, 2008 2:26 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
marcelo
Contributor
Contributor


Joined: 10 May 2008
Posts: 155

PostPosted: Sat Jul 26, 2008 10:03 pm    Post subject: Reply with quote

OK, tanks a lot!!!
I wil try this too because is more simple than my old solution....

Thanks again!!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
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

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group