Solved

write in registry

Posted on 2004-09-01
4
183 Views
Last Modified: 2010-04-23
how can i write current time into the registry
0
Comment
Question by:ahmadfuwad
4 Comments
 
LVL 28

Accepted Solution

by:
iboutchkine earned 20 total points
ID: 11951676
' Sets the default value for the specified subkey
Public Sub SetKeyValue( _
    ByVal regNode As Microsoft.Win32.RegistryHive, _
    ByVal machineName As String, _
    ByVal subKeyName As String, _
    ByVal keyValueName As String, _
    ByVal keyValue As String)
    ' Arguments : regNode - The name of the HKEY to open
    '                       (provided by Win32.RegistryHive class)
    '                       ClassesRoot, CurrentConfig, CurrentUser, DynData,
    '                       LocalMachine, PerformanceData, or Users
    '             machineName - The machine to connect to
    '             subKeyName - The name of the subkey to set the value for
    '             keyValueName - The name of the value
    '             keyValue - The value to set

    Microsoft.Win32.RegistryKey.OpenRemoteBaseKey(regNode, machineName). _
        OpenSubKey(subKeyName, True).SetValue(keyValueName, keyValue)

End Sub
 put the Time in the keyValue
0
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 11959612
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question