Results 1 to 2 of 2

Thread: executing a .reg file

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 1999
    Location
    u.s.a
    Posts
    127
    Is there a way to execute a .reg file
    through vb code?
    Thanks.
    Dan.

  2. #2
    Junior Member
    Join Date
    Aug 2000
    Posts
    27
    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)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width