VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Register a DLL with only 3 lines

by Design7 Software (7 Submissions)
Category: Windows System Services
Compatability: Visual Basic 5.0
Difficulty: Beginner
Date Added: Wed 3rd February 2021
Rating: (3 Votes)

Register your DLLs with only 3 lines of code, simple and effective.
Please vote and leave your comments.

Rate Register a DLL with only 3 lines

'Set the directory of your DLL
dllpath="C:\Windows\mydll.dll"
'Call the FileSystemObject for
'retrieving the Windows Folder
Set fso=CreateObject("Scripting.FileSystemObject")
'Call the Reg DLL Server in the Windows dir
'and pass the DLL path as a parameter
Shell(fso.GetSpecialFolder(0) & "\regsvr32.exe " & dllpath, vbHide)

Download this snippet    Add to My Saved Code

Register a DLL with only 3 lines Comments

No comments have been posted about Register a DLL with only 3 lines. Why not be the first to post a comment about Register a DLL with only 3 lines.

Post your comment

Subject:
Message:
0/1000 characters