Forum Discussion

abdul_rp's avatar
abdul_rp
Contributor
12 years ago

.Vbs file to DLL

Hi,



We don't want to share or expose the Generic functions written in .vbs file and want to convert it to dll file and perform the operation using the created dll. Is there a way to accomplish this  task?





Regards,

Abdul



  • hlalumiere's avatar
    hlalumiere
    Regular Contributor
    VBS files are scripts, which by definition are text files. They are not compiled, they are interpreted, so instead you should write your DLL in VB.Net Express for example and call that from your script.
  • AlexKaras's avatar
    AlexKaras
    Icon for Champion Level 3 rankChampion Level 3
    Hi Abdul,



    For VBScript and JScript TestComplete uses regular engines provided by OS. As these engines can process only plain text files, this means that nothing can be done with the test sources.
  • Thanks for your reply !!!



    If I obfuscate .vbs file, TC will be able to read and perform the operation without ant issues?



    Regards,

    Abdul
  • hlalumiere's avatar
    hlalumiere
    Regular Contributor
    Why not just write the DLL in the proper language to begin with? Write it in VB or C, make it COM-visible, and call it from your script.
  • Depending of the purpose of not sharing/exposing, you could try the Script Extensions.



    If it is a matter of confidentiality or security, then do not use Script Extensions, but if it is meant to simplify the framework for end users, then Script Extensions may be what you need.