Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - modify registry with a var

Reply
 
Old 09-05-2008   #1 (permalink)
NT


 
 

modify registry with a var

hello

i make a script who modify a values in the registry, it is ok when i use the
values in the instruction , but it doesn' work when i use a variable, see :

i think it is something about the cote but ...

1) this part is ok

the values is : "toto@xxxxxx"

clepop=clea&valeurlue&"\POP3 User Name"
WshShell.RegWrite clepop,"toto@xxxxxx","REG_SZ"



2) this part doesn't work

modifmail = "toto@xxxxxx"
clepop=clea&valeurlue&"\POP3 User Name"
WshShell.RegWrite clepop,modifmail,"REG_SZ"


thanks a lot, nicolas


My System SpecsSystem Spec
Old 09-05-2008   #2 (permalink)
Pegasus \(MVP\)


 
 

Re: modify registry with a var


"NT" <nt29@xxxxxx> wrote in message
news:%23c2QzXyDJHA.4696@xxxxxx
Quote:

> hello
>
> i make a script who modify a values in the registry, it is ok when i use
> the values in the instruction , but it doesn' work when i use a variable,
> see :
>
> i think it is something about the cote but ...
>
> 1) this part is ok
>
> the values is : "toto@xxxxxx"
>
> clepop=clea&valeurlue&"\POP3 User Name"
> WshShell.RegWrite clepop,"toto@xxxxxx","REG_SZ"
>
> 2) this part doesn't work
>
> modifmail = "toto@xxxxxx"
> clepop=clea&valeurlue&"\POP3 User Name"
> WshShell.RegWrite clepop,modifmail,"REG_SZ"
>
> thanks a lot, nicolas
- What are the values of "clea" and "valeurlue"?
- What error message do you get?


My System SpecsSystem Spec
Old 09-05-2008   #3 (permalink)
NT


 
 

Re: modify registry with a var

thanks for your answer

i don't know how (i make some modification) but now it work

if you want i can post the script

thanks a lot nicolas
"Pegasus (MVP)" <I.can@xxxxxx> a écrit dans le message de
news:uqSD8ezDJHA.4800@xxxxxx
Quote:

>
> "NT" <nt29@xxxxxx> wrote in message
> news:%23c2QzXyDJHA.4696@xxxxxx
Quote:

>> hello
>>
>> i make a script who modify a values in the registry, it is ok when i use
>> the values in the instruction , but it doesn' work when i use a variable,
>> see :
>>
>> i think it is something about the cote but ...
>>
>> 1) this part is ok
>>
>> the values is : "toto@xxxxxx"
>>
>> clepop=clea&valeurlue&"\POP3 User Name"
>> WshShell.RegWrite clepop,"toto@xxxxxx","REG_SZ"
>>
>> 2) this part doesn't work
>>
>> modifmail = "toto@xxxxxx"
>> clepop=clea&valeurlue&"\POP3 User Name"
>> WshShell.RegWrite clepop,modifmail,"REG_SZ"
>>
>> thanks a lot, nicolas
>
> - What are the values of "clea" and "valeurlue"?
> - What error message do you get?
>
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Registry Search Tool... Cleaning Up Vista Registry... Vista General
Wise Registry Cleaner vs AusLogics Registry Defrag vs CCLeaner? Vista performance & maintenance
Registry Semi-Disaster: I am an idiot - used 2 registry 'cleaners' Vista General
Modify registry Vista performance & maintenance
What can a normal user (e.g. administrator) can read and modify inthe Registry? Vista security


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46