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 


Writing a "(Default)" registry value

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
Dave Heck
Valued Newbie


Joined: 02 Mar 2002
Posts: 34
Location: Union, CT USA

PostPosted: Mon Aug 07, 2006 2:43 pm    Post subject: Writing a "(Default)" registry value Reply with quote

I apologize in advance if this had been covered before, but I cannot find this in the forum.

I need to write a registry value that is listed in the Regedit program as a (Default) value onto multiple computers. When I export the existing key on a test PC the .REG file looks like this:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\TEST]
@="This is the Default entry"

Apparently the "@" symbol in the .REG file signifies that this is a (Default) entry - when the file is merged into the Registry it comes in that way (see attached .JPG).

In VDS I have tried writing this several different ways, as listed below, but none of them work

REGISTRY WRITE,LOCAL,SOFTWARE\TEST,@CHR(64),This is the default entry

REGISTRY WRITE,LOCAL,SOFTWARE\TEST,@,This is the default entry

REGISTRY WRITE,LOCAL,SOFTWARE\TEST,(Default),This is the default entry

I can always run the Regedit.exe in silent mode to merge the working .REG file into the registry on the additional PCs, but am curious if someone has run into this and has a solution - it's not the first time this has come up for me.

Thanks for your help.
Dave



Default Registry Value.jpg
 Description:
 Filesize:  31.35 KB
 Viewed:  12318 Time(s)

Default Registry Value.jpg



_________________
Dave Heck
dheck1961@cox.net
Union, Connecticut USA
Back to top
View user's profile Send private message Send e-mail
Dr. Dread
Professional Member
Professional Member


Joined: 03 Aug 2001
Posts: 1065
Location: Copenhagen, Denmark

PostPosted: Mon Aug 07, 2006 3:13 pm    Post subject: Reply with quote

How 'bout this:

Code:
REGISTRY WRITE,LOCAL,SOFTWARE\TEST,,"Greetings from Dread"


Greetz
Dr. Dread

_________________
~~ Alcohol and calculus don't mix... Don't drink and derive! ~~

String.DLL * advanced string processing
Back to top
View user's profile Send private message
Dave Heck
Valued Newbie


Joined: 02 Mar 2002
Posts: 34
Location: Union, CT USA

PostPosted: Mon Aug 07, 2006 4:32 pm    Post subject: Reply with quote

You gotta be kidding me....that works - please tell me that's not in the "manual" somewhere

THANKS!!!!!!

_________________
Dave Heck
dheck1961@cox.net
Union, Connecticut USA
Back to top
View user's profile Send private message Send e-mail
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Mon Aug 07, 2006 6:32 pm    Post subject: Reply with quote

Uhhhhhhyeah, just leave the name blank and that will make it write to the
default value.

I think the help file mentions this, but I could be wrong. Been a while
since i've been in the help file.

-Garrett
Back to top
View user's profile Send private message
Dave Heck
Valued Newbie


Joined: 02 Mar 2002
Posts: 34
Location: Union, CT USA

PostPosted: Mon Aug 07, 2006 6:41 pm    Post subject: Reply with quote

The Help File mentions leaving the third parameter Null, but then goes on to say that "it only makes sense for it to be null when the second parameter is DEFAULT".

Confusing.....thanks again for the help

Dave

_________________
Dave Heck
dheck1961@cox.net
Union, Connecticut USA
Back to top
View user's profile Send private message Send e-mail
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