Is there a way to execute a .reg file
through vb code?
Thanks.
Dan.
Printable View
Is there a way to execute a .reg file
through vb code?
Thanks.
Dan.
Code:Public Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, _
ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, _
ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
X = ShellExecute(0&, "OPEN", "FileName", "", "", 1)