Solved

write in registry

Posted on 2004-09-01
4
184 Views
Last Modified: 2010-04-23
how can i write current time into the registry
0
Comment
Question by:ahmadfuwad
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

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…
A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

751 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