Solved

write in registry

Posted on 2004-09-01
4
181 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

Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.

773 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