Solved

write in registry

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

Expert Comment

by:Éric Moreau
ID: 11959612
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

707 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now