Hey People,

Here's the situation, I have made a VB script regarding some profile
relative settings on a client. However we thought it might be
interesting to get the script only to run if a surten entry on the
registry is 1.1 for instance.

so basically I made a key under HKCU/Software/Companyname/Profile "0"
So Default the key would be zero. Now when Im in the VB script I cant
seem to find a way to get that actual key into an IF construction.

so this is what I want: IF registryentry is 0 THEN Run script and at
the end create registry entry 1.1 (the creating an entry inst a
problem), and with that a line IF registryentry is 1.1 THEN stop te
script all together..

Can someone help me out here.. thnx in advance!

Re: Getting info from a Registry Entry. by TDM

TDM
Thu Oct 23 20:35:51 CDT 2003



Seems to me you could simply use RegRead to get the value and If-Then from
that value ? Then use RegWrite to put your 1.1 value in place. Am I missing
something here ?

TDM

M. vd Kolk wrote:
> Hey People,
>
> Here's the situation, I have made a VB script regarding some profile
> relative settings on a client. However we thought it might be
> interesting to get the script only to run if a surten entry on the
> registry is 1.1 for instance.
>
> so basically I made a key under HKCU/Software/Companyname/Profile "0"
> So Default the key would be zero. Now when Im in the VB script I cant
> seem to find a way to get that actual key into an IF construction.
>
> so this is what I want: IF registryentry is 0 THEN Run script and at
> the end create registry entry 1.1 (the creating an entry inst a
> problem), and with that a line IF registryentry is 1.1 THEN stop te
> script all together..
>
> Can someone help me out here.. thnx in advance!