I`ll try it, many thanks!Quote:
Originally Posted by techgnome
Can you please post a example?
Printable View
I`ll try it, many thanks!Quote:
Originally Posted by techgnome
Can you please post a example?
Is there any Vbscript components? And where can i get it?
I want to use the com to run source instead of a file, like:afrog:Code:Execute("Dim I:I=3:Wscript.Echo I")
I you can help me, then thank you very much!:)
Add a reference to the Microsoft Scripting Library..... You may need to do a Google search on how to use it exactly. I've used in in our project here (in a rather unorthodox way, otherwise I'd show a sample on how to use it.
But, basically you create an instance of the scripter, .AddModule (or it might be .Modules.Add - I forget the exact syntax), then add code to it. Once you have all the code added (which can include subs, functions, etc) you can execute the code and return the result. It is also possible to pass in parameters.
-tg
I finaly understood it, you told me wrong information >(
Not Microsoft Scripting Library, but Microsoft Script Control!