VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Simple regwrite function.Make use of it ,when u need ur application to be started initially when wi

by Martin Anbu Selvan (18 Submissions)
Category: Registry
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Thu 26th February 2004
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Simple regwrite function.Make use of it ,when u need ur application to be started initially when windows starts.

Rate Simple regwrite function.Make use of it ,when u need ur application to be started initially when wi



'St.joseph's college of Engineering,chennai.
'[email protected]

'Function for RegWrite

Private Function RegWrite(Key1, SValue As String)

Set WSHShell = CreateObject("WScript.Shell")
WSHShell.RegWrite Key1, SValue

End Function


'Button to create an Autorun Key

Private Sub Command1_Click()

RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run\notepad.exe", " path of the notepad"

End Sub


Download this snippet    Add to My Saved Code

Simple regwrite function.Make use of it ,when u need ur application to be started initially when wi Comments

No comments have been posted about Simple regwrite function.Make use of it ,when u need ur application to be started initially when wi. Why not be the first to post a comment about Simple regwrite function.Make use of it ,when u need ur application to be started initially when wi.

Post your comment

Subject:
Message:
0/1000 characters