I am trying to run vbscript on a computer that does not have any visual studio on it or .NET. I recieve the error "ActiveX component cant create object : MSWinsock.Winsock" when I try to run a script that I have created. I know if I install visual studio on it, that it would work, but I cant do that, does anyone know what is the dll that I need to regsvr?
Thanks,
Ross
Hi
The winsock control is a licensed control distributed with MS
development tools (like VB, VStudio, etc.). The script will not
work on computers that does not have any of those development
programs installed.
From a previous post by Alex K. Angelopoulos:
<quote>
Monte Hansen wrote a free DLL which can be used as a replacement for the
licensed Winsock. You can download it from:
http://www.killervb.com/WinsockLib.aspx
You need to make only minor modifications to scripts which would depend on the
Microsoft Winsock control; I haven't mastered use of it myself yet, but it
"feels" even more lightweight than the MS Winsock from my light usage.
</quote>
Alternatively you can try the Toolsack Baseline component
found at http://www.toolsack.com/
Toolsack Baseline 1.1 is a FREE library of 30 COM objects especially
designed for windows scripting environments such as ASP, WSH, and VBA.
Objects include: Sockets, DLL functions, Stopwatch, GMT, Typed Lists,
SMTPMail, Binary File I/O, GUIDs, DNS, Sound, and more in one package.
--
torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of
the 1328 page Scripting Guide:
http://www.microsoft.com/technet/community/scriptcenter/default.mspx