WSH might be easier for you:
2. WSH does not require .NET so it will work on legacy Windows systems like Win98/WinME.The main site for WSH is http://msdn.microsoft.com/scripting. If you choose WSH, you'll need COM or ActiveX objects which wrap the winsock API. There are literally dozens of such objects available for free, including at least one from Microsoft (Winsock Control)
. However, you might find COM objects specifically targeted for WSH easier to use,
such as this one
. Please do your own research and analysis though; I haven't used these objects and am not endorsing them. The nice thing about using the Microsoft Winsock Control is that many people probably already have it installed.Here
is sample code showing how someone used the Winsock Control with WSH JScript. I'm sure you can find lots more samples if you search.
If you choose PowerShell, you'll want to use the classes in the System.Net.Sockets namespace
. They are managed classes wrapping the native winsock Win32 API functions.
----- Original Message ----
From: Anothony Georgeo <anogeorgeo@xxxxxxxxx>
Sent: Wednesday, August 2, 2006 9:41:27 PM
Subject: Re: Re: Using Tor signals on Win32 NT (eg. pseudo-signals)?
>I know some people are averse to installing .NET and, if that's the case with Anothony, then I doubt there's a viable (free) scripting solution.
I take this back. I forgot you can invoke COM objects from Windows Script Host (WSH) scripts. WSH only requires wscript.exe, not .NET (it predates .NET by a number of years). There are countless COM objects that handle socket communications.
Let me know if you need more info.
Any extra info you feel like posting would be *extremely* helpfull as I am not a programmer. I have been reading up on PowerShell but I'm a bit
more confortable with traditional WSH.
I would prefer to use WSH as .Net is not required and WSH seems a bit easier than PowerShell.
I am most comfortable/knowledgeable with batch scripts (eg. .cmd's) but I'm willing to study and do what it takes to to learn WSH or PowerShell to achive my goal. I will use which ever you deem the most appropriate and efficient.
I really appreciate all the help/guidence you've given me so far but I don't want to become a pest.
I intend to post the script here (if Nick and Roger don't mind) as I am sure most users of Tor and Win32 NT would love to have access to the final script.
Thank you very much for your time, Anogeorgeo :-)
Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail Beta.