I have my script on server, so I do not have UI interaction available and have to use DLL instead of console application.
How to call a function in C# DLL from VBScript?
How do I make my DLL to be COMVisible? Do I have to register it?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You need to mark your assembly as COM visible by setting the COMVisibleAttribute to true (either at assembly level or at class level if you want to expose only a single type).
Next you register it with:
and finally call it from VBScript: