Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

write in registry

Posted on 2004-09-01
4
Medium Priority
?
189 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 80 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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…

885 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