I want to write a script that can run on a vanilla Windows (XP or later) system and call methods in an installed (GAC'd) .NET assembly. (I need to deliver the script to other people and I don't want to assume that they have anything in particular installed (other than the the assembly in question). Can I use JavaScript (JScript) or VBScript (in conjunction with the standard Windows cscript/wscript commands) to do this somehow?
2 Answers
I've never tried it, but I would think your best bet would be to call the .Net component via COM interop. This article should get you started.