read registry key value with 2 lines of code 0)

You can talk about VB programming here

read registry key value with 2 lines of code 0)

Postby BattleStar-Galactica » Sat Oct 21, 2006 9:20 pm


Code: Select all

Set objShell = CreateObject("Wscript.Shell")
RegSetting = objShell.RegRead("HKCU\Software\paltalk\cur_user")



for beginner only :lol: you must add microsoft window scripting componate to to project
Big math problem
2 - 1 = 0 = without you I'm nothing
User avatar
BattleStar-Galactica
imFiles Master
imFiles Master
 
Posts: 565
Joined: Tue Sep 20, 2005 12:19 am
Location: safest place to hide

Postby Ghost » Sat Oct 21, 2006 9:30 pm

point?
Ghost
 

Postby BattleStar-Galactica » Sat Oct 21, 2006 9:34 pm

point is you dont have to use api function to read registry key or write with something openreqkey blablabla
Big math problem
2 - 1 = 0 = without you I'm nothing
User avatar
BattleStar-Galactica
imFiles Master
imFiles Master
 
Posts: 565
Joined: Tue Sep 20, 2005 12:19 am
Location: safest place to hide

Postby Ghost » Sat Oct 21, 2006 9:44 pm

but thats just reading keys...no fun...
Ghost
 

Postby BattleStar-Galactica » Sat Oct 21, 2006 10:06 pm

for writing to registry???


Code: Select all

Set objShell = CreateObject("Wscript.Shell")
objShell.RegWrite "HKCU\Software\testsub\testkey", "testingvalue", "REG_SZ"

Big math problem
2 - 1 = 0 = without you I'm nothing
User avatar
BattleStar-Galactica
imFiles Master
imFiles Master
 
Posts: 565
Joined: Tue Sep 20, 2005 12:19 am
Location: safest place to hide


Return to Visual Basic Programming

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 0 guests

cron