﻿<?xml version="1.0" encoding="utf-8"?><rss version="2.0"><channel><title>Script Telnet</title><link>http://www.visualbasicscript.com/</link><description /><copyright>(c) VBScript Forum</copyright><ttl>30</ttl><item><title>Re:Script Telnet (ady2n)</title><description>  After decompiling w3sockets.dll, i found that it was made in Delphi4 and that the only terminal type that will be necogiated are VT100 and JAFTN &lt;br&gt;  </description><link>http://www.visualbasicscript.com/fb.ashx?m=88777</link><pubDate>Tue, 01 Feb 2011 10:51:56 GMT</pubDate></item><item><title>RE: Script Telnet (megatron)</title><description>  Hi All, I would like to thank &lt;a href="http://www.visualbasicscript.com/showprofile.aspx?memid=8013" target="_blank" rel="nofollow"&gt;&lt;b&gt;&lt;/font&gt;&lt;font size="3"&gt;DiGiTAL.SkReAM&lt;/font&gt;&lt;/font&gt;&lt;/b&gt;&lt;/a&gt; for starting this post which was way back in 2006 lol but hey i just found it today since i was looking for a telnet vb client so i could make telnet automation i started learning vb few weeks ago so if i do something stupid consider it noob mistake :p  &lt;br&gt;       &lt;br&gt;      I am running Visual basic 2010 n its running on .net framework 4.  &lt;br&gt;       &lt;br&gt;      I tried running the above script provided by Digi Skream and quote error at :-  &lt;br&gt;       &lt;br&gt;      &lt;font color="#660066"&gt;If&lt;/font&gt; &lt;font color="#660066"&gt;InStr&lt;/font&gt;&lt;font color="#666600"&gt;(&lt;/font&gt;sSocketText&lt;font color="#666600"&gt;,&lt;/font&gt;&lt;font color="#008800"&gt;"Microsoft ESMTP MAIL Service"&lt;/font&gt;&lt;font color="#666600"&gt;)&lt;/font&gt; &lt;font color="#666600"&gt;&amp;lt;&amp;gt;&lt;/font&gt; &lt;font color="#666600"&gt;18&#x2;&lt;/font&gt;19&#x2; &lt;font color="#660066"&gt;Then&lt;/font&gt; &lt;STRIKE&gt;&lt;font color="#660066"&gt;WScript&lt;/font&gt;&lt;font color="#666600"&gt;.&lt;/font&gt;&lt;font color="#660066"&gt;Echo&lt;/font&gt; &lt;/STRIKE&gt;&lt;font color="#008800"&gt;"Exchange Found!"  &lt;br&gt;       &lt;br&gt;      &lt;font color="#000000"&gt;WScript.Echo&lt;/font&gt; &lt;font color="#000000"&gt;kept giving declare var issue so i replaced it with Msgbox("Exchange Found!") and it worked.&lt;/font&gt;&lt;/font&gt;  &lt;br&gt;      &lt;font color="#008800"&gt;&lt;font color="#000000"&gt;&lt;/font&gt;&lt;/font&gt;&amp;nbsp;  &lt;br&gt;      &lt;font color="#008800"&gt;&lt;font color="#000000"&gt;Now since i wanted telnet and this only checks if its exchange server or not then didnt help me. But since i found out about w3sockets i googled and found &lt;a href="http://www.sudowudo.com/index.php?page=1020" target="_blank" rel="nofollow"&gt;http://www.sudowudo.com/index.php?page=1020&lt;/a&gt;&amp;nbsp;which is awesome program too bad i couldnt thank him since he doesnt have contact board or email listed. &lt;/font&gt;&lt;/font&gt; &lt;br&gt;      &lt;font color="#008800"&gt;&lt;font color="#000000"&gt;&lt;/font&gt;&lt;/font&gt;&amp;nbsp;  &lt;br&gt;      &lt;font color="#008800"&gt;&lt;font color="#000000"&gt;Ok now i had everything but one thing kept on bothering me was asking my user to install or run "SocketReg.exe" since i know most of the time user will just try to run the telnet program without running SocketReg.exe which was a problem. So i wanted to automate the process. I thought of vbhide option and then put a timer and close it but hell i just started learning dont really know how to do it. So i ran Vm ThinApp and ran SocketReg ..doing so basically broke register creation down for me to see which regs it created. Following is the breakdown of regs :-&lt;/font&gt;&lt;/font&gt;  &lt;br&gt;      &lt;pre class="prettyprint"&gt; Windows Registry Editor Version 5.00      [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{B8EDC06D-2FF9-11D1-9755-0060979FF483}] 
     @="TCPObject" [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{B8EDC06D-2FF9-11D1-9755-0060979FF483}\InprocServer32] 
     @="C:\\w3Sockets\\socket.dll" "ThreadingModel"="Both" [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{B8EDC06D-2FF9-11D1-9755-0060979FF483}\ProgID] 
     @="Socket.TCP" [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{B8EDC06D-2FF9-11D1-9755-0060979FF483}\TypeLib] 
     @="{B8EDC06B-2FF9-11D1-9755-0060979FF483}" [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{B8EDC06D-2FF9-11D1-9755-0060979FF483}\Version] 
     @="1.0" [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Interface\{B8EDC06C-2FF9-11D1-9755-0060979FF483}] 
     @="ITCP" [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Interface\{B8EDC06C-2FF9-11D1-9755-0060979FF483}\ProxyStubClsid] 
     @="{00020424-0000-0000-C000-000000000046}" [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Interface\{B8EDC06C-2FF9-11D1-9755-0060979FF483}\ProxyStubClsid32] 
     @="{00020424-0000-0000-C000-000000000046}" [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Interface\{B8EDC06C-2FF9-11D1-9755-0060979FF483}\TypeLib] 
     @="{B8EDC06B-2FF9-11D1-9755-0060979FF483}" 
     "Version"="1.0" [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Socket.TCP] 
     @="TCPObject" [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Socket.TCP\Clsid] 
     @="{B8EDC06D-2FF9-11D1-9755-0060979FF483}" [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib\{B8EDC06B-2FF9-11D1-9755-0060979FF483}] [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib\{B8EDC06B-2FF9-11D1-9755-0060979FF483}\1.0] 
     @="Socket Library" [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib\{B8EDC06B-2FF9-11D1-9755-0060979FF483}\1.0\0] [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib\{B8EDC06B-2FF9-11D1-9755-0060979FF483}\1.0\0\win32] 
     @="C:\\w3Sockets\\socket.dll" [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib\{B8EDC06B-2FF9-11D1-9755-0060979FF483}\1.0\FLAGS] 
     @="0" [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib\{B8EDC06B-2FF9-11D1-9755-0060979FF483}\1.0\HELPDIR] 
     @="C:\\w3Sockets\\" 
     &lt;/pre&gt;&amp;nbsp;  &lt;br&gt;      &lt;/font&gt;&lt;/font&gt;&lt;font color="#153b7c"&gt; &lt;br&gt;      I had to edit my post to fix the reg and it still didnt show the code properly so i am going to keep it there just in case someone is lazy enuf&amp;nbsp;not to&amp;nbsp;download the zip file with reg entries. Here's the rapidshare link for downloading the reg &lt;a href="http://rapidshare.com/files/393203383/AIO_Reg_for_w3Sockets.zip.html" target="_blank" rel="nofollow"&gt;http://rapidshare.com/files/393203383/AIO_Reg_for_w3Sockets.zip.html&lt;/a&gt;&amp;nbsp;&amp;lt;--All In One Reg for w3sockets.&lt;/font&gt;  &lt;br&gt;      &lt;font color="#000000"&gt;&lt;/font&gt;&amp;nbsp;  &lt;br&gt;      &lt;font color="#000000"&gt;thats all the reg being created by SocketReg.exe i have tested it by importing registery and running the w3Sockets program without running SocketReg.exe. This basically makes it fully non interactive. My insight on why SocketReg.exe was created at the 1st place :-&lt;/font&gt;&amp;nbsp;  &lt;br&gt;      &amp;nbsp;  &lt;br&gt;      &lt;font color="#000000"&gt;If you sniff thru the above reg you will see Directory Reference on atleast&amp;nbsp;3 places :-&lt;/font&gt;  &lt;br&gt;      &amp;nbsp;  &lt;br&gt;      [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{B8EDC06D-2FF9-11D1-9755-0060979FF483}\InprocServer32]  &lt;br&gt;      @="C:\\w3Sockets\\socket.dll"  &lt;br&gt;      "ThreadingModel"="Both"  &lt;br&gt;      [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib\{B8EDC06B-2FF9-11D1-9755-0060979FF483}\1.0\0\win32]  &lt;br&gt;      @="C:\\w3Sockets\\socket.dll  &lt;br&gt;      [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib\{B8EDC06B-2FF9-11D1-9755-0060979FF483}\1.0\HELPDIR]  &lt;br&gt;      @="C:\\w3Sockets\\"  &lt;br&gt;      &amp;nbsp;  &lt;br&gt;      &lt;font color="#000000"&gt;So if you make two Dim variables one for &lt;b&gt;mainDir &lt;/b&gt;and one for &lt;b&gt;exactDLL&lt;/b&gt;&lt;/font&gt;  &lt;br&gt;      &lt;b&gt;&lt;/b&gt;&amp;nbsp;  &lt;br&gt;      &lt;font color="#000000"&gt;i.e&lt;/font&gt;  &lt;br&gt;      Dim mainDir = "c:\\w3Sockets\\"  &lt;br&gt;      Dim exactDLL = "c:\\w3Sockets\\socket.dll"  &lt;br&gt;      &amp;nbsp;  &lt;br&gt;      &lt;font color="#000000"&gt;and replace reg with Dim vars i.e :-&lt;/font&gt;  &lt;br&gt;      &amp;nbsp;  &lt;br&gt;      [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib\{B8EDC06B-2FF9-11D1-9755-0060979FF483}\1.0\0\win32]  &lt;br&gt;      @=""&amp;amp; exactDLL &amp;amp;""  &lt;br&gt;      &lt;font color="#008800"&gt;&lt;font color="#000000"&gt;&lt;/font&gt;&lt;/font&gt;&amp;nbsp;  &lt;br&gt;      &lt;font color="#008800"&gt;&lt;font color="#000000"&gt;That will make it fully automated and wont give you runtime error. In my program i will extract these two a installation folder and place "socket.dll" in that place as well and basically define the installation folder and assign Dim mainDir &amp;amp; Dim exactDLL location right there and then.&lt;/font&gt;&lt;/font&gt;  &lt;br&gt;      &lt;font color="#008800"&gt;&lt;font color="#000000"&gt;&lt;/font&gt;&lt;/font&gt;&amp;nbsp;  &lt;br&gt;      &lt;font color="#008800"&gt;&lt;font color="#000000"&gt;Hopefully all this writing will come handy for someone out there like me.&lt;/font&gt;&lt;/font&gt;&amp;nbsp;  &lt;br&gt;      &lt;font color="#008800"&gt;&lt;font color="#000000"&gt;&lt;/font&gt;&lt;/font&gt;&amp;nbsp;  &lt;br&gt;      &lt;font color="#000000"&gt;All thanks goes to w3sockets creator and sharing his wonderful dll with us for free and for people creating wonderful softwares out of it :) &lt;/font&gt; &lt;br&gt;      &lt;font color="#008800"&gt;&lt;font color="#000000"&gt;Regards,&lt;/font&gt;&lt;/font&gt;  &lt;br&gt;      &lt;font color="#008800"&gt;&lt;font color="#000000"&gt;&lt;/font&gt;&lt;/font&gt;&amp;nbsp;  &lt;br&gt;      &lt;font color="#008800"&gt;&lt;font color="#000000"&gt;Megatron  &lt;br&gt;       &lt;br&gt;  </description><link>http://www.visualbasicscript.com/fb.ashx?m=83432</link><pubDate>Sun, 30 May 2010 02:40:29 GMT</pubDate></item><item><title>RE: Script Telnet (Compuguide)</title><description>  &lt;blockquote class="quote"&gt;&lt;i&gt;gazumba&lt;/i&gt;&lt;br&gt;  &lt;br&gt;   &lt;br&gt;  Compuguide,   &lt;br&gt;   &lt;br&gt;  I had the same problem.   &lt;br&gt;   &lt;br&gt;  I found a solution:   &lt;br&gt;  1. Seek the C: for the four CSCRIPT.EXE files. Each&amp;nbsp;pair of them have the same size, but there are two smaller.   &lt;br&gt;  2. One of these (smaller)&amp;nbsp;is located on the subdir:   &lt;br&gt;  C:\Windows\winsxs\wow64_microsoft-windows-scripting_31bf3856ad364e35_6.1.7600.16385_none_aeb1ef0f4e6bba1d\cscript.exe   &lt;br&gt;  3. Edit its properties and set it to run&amp;nbsp;in a compatibility way using "Windows XP SP3", for example, as I use   &lt;br&gt;  4. Run your scripts using the path for the CSCRIPT.EXE like item 2 above, followed by the script you must run   &lt;br&gt;   &lt;br&gt;  I use it inside batches and the path I copy/paste just one time. To run in the command line you must to include the directory (item 2) in the system path (I really do not know if it will run fine this way, but try it and let me know the results).   &lt;br&gt;   &lt;br&gt;  If you have any sugestions to my solution, let me know. It will be welcome.   &lt;br&gt;  EDITED BY THE AUTHOR  &lt;br&gt;  After followed the steps 1 thru 4, just copy the file above to the subdir you are working. The scripts will run as it was in the old Windows (XP or Vista 32) using the command line as shown below without the &amp;lt;&amp;gt; symbols:  &lt;br&gt;  cscript &amp;lt;scriptname.vbs&amp;gt;  &lt;br&gt;  Good lucky.  &lt;br&gt;  &lt;/blockquote&gt;  &lt;br&gt;   &lt;br&gt;  Appologies for taking so long to respond, I have only just rediscovered this thread and seen the above solution. &lt;br&gt;   &lt;br&gt;  gazumba, many thanks, I can confirm that it works perfectly! &lt;br&gt;  </description><link>http://www.visualbasicscript.com/fb.ashx?m=82285</link><pubDate>Wed, 07 Apr 2010 10:10:54 GMT</pubDate></item><item><title>RE: Script Telnet (DiGiTAL.SkReAM)</title><description>  Ok, with everyone having problems with this over the past few months, I decided to go back over it. &lt;br&gt;      &amp;nbsp; &lt;br&gt;      Step #1) Go to&amp;nbsp;&lt;a href="http://tech.dimac.net/default3.asp?M=FreeDownloads/Menu.asp&amp;amp;P=FreeDownloads/FreeDownloadsstart.asp" target="_blank" rel="nofollow"&gt;this site&lt;/a&gt; and get the w3sockets dll. &lt;br&gt;      Step #2) Unzip it &lt;br&gt;      Step #3) Run the SocketReg.exe that is included in the zip file. &lt;br&gt;      Step #4) If it says that everything is good-to-go use the script that is posted in the beginning of the thread. &lt;br&gt;      &amp;nbsp; &lt;br&gt;      I did these on a new xp install, and voila!&amp;nbsp; it worked just fine. &lt;br&gt;      The only thing that I can tell you is to make sure that you have winsock2 and that the w3sockets dll is registered. &lt;br&gt;      At this time I have no way to test it on every possible version of Windows out there.&amp;nbsp; It works on WinXP 32bit. &lt;br&gt;      Know that it will NOT work if you do not have the capability to have winsock2 on your machine. &lt;br&gt;      &amp;nbsp; &lt;br&gt;      As it is a free DLL, the authors have given this little bit of &lt;a href="http://www.dimac.net/Products/FreeProducts/w3Sockets/Reference/Refstart.htm#TimeOut" target="_blank" rel="nofollow"&gt;documentation&lt;/a&gt;. &lt;br&gt;      &amp;nbsp; &lt;br&gt;  </description><link>http://www.visualbasicscript.com/fb.ashx?m=80559</link><pubDate>Fri, 05 Feb 2010 23:44:04 GMT</pubDate></item><item><title>RE: Script Telnet (xaxis)</title><description>  &lt;blockquote class="quote"&gt;&lt;i&gt;gazumba&lt;/i&gt;&lt;br&gt;  &lt;br&gt;       &lt;br&gt;      Compuguide,  &lt;br&gt;       &lt;br&gt;      I had the same problem.  &lt;br&gt;       &lt;br&gt;      I found a solution:  &lt;br&gt;      1. Seek the C: for the four CSCRIPT.EXE files. Each&amp;nbsp;pair of them have the same size, but there are two smaller.  &lt;br&gt;      2. One of these (smaller)&amp;nbsp;is located on the subdir:  &lt;br&gt;      C:\Windows\winsxs\wow64_microsoft-windows-scripting_31bf3856ad364e35_6.1.7600.16385_none_aeb1ef0f4e6bba1d\cscript.exe  &lt;br&gt;      3. Edit its properties and set it to run&amp;nbsp;in a compatibility way using "Windows XP SP3", for example, as I use  &lt;br&gt;      4. Run your scripts using the path for the CSCRIPT.EXE like item 2 above, followed by the script you must run  &lt;br&gt;       &lt;br&gt;      I use it inside batches and the path I copy/paste just one time. To run in the command line you must to include the directory (item 2) in the system path (I really do not know if it will run fine this way, but try it and let me know the results).  &lt;br&gt;       &lt;br&gt;      If you have any sugestions to my solution, let me know. It will be welcome.  &lt;br&gt;      EDITED BY THE AUTHOR  &lt;br&gt;      After followed the steps 1 thru 4, just copy the file above to the subdir you are working. The scripts will run as it was in the old Windows (XP or Vista 32) using the command line as shown below without the &amp;lt;&amp;gt; symbols:  &lt;br&gt;      cscript &amp;lt;scriptname.vbs&amp;gt;  &lt;br&gt;      Good lucky.  &lt;br&gt;      &lt;/blockquote&gt;  &lt;br&gt;       &lt;br&gt;      Well I'm having the same problem as Compuguide except I am running Windows Server 2003 R2 Enterprise 64-bit Service Pack 2.&amp;nbsp; I'm calling cscript from the command line and on this system there is a 32-bit and 64-bit cscript.exe (don't have two pairs).&amp;nbsp; The error I get back with the 64-bit one is: &lt;i&gt;&lt;font color="#0000ff"&gt;Object doesn't support this property or method&lt;/font&gt;&lt;/i&gt;.&amp;nbsp; The error I get back with the 32-bit version is: &lt;i&gt;&lt;font color="#0000ff"&gt;ActiveX component can't create object: socket.tcp&lt;/font&gt;&lt;/i&gt;.  &lt;br&gt;      &amp;nbsp;  &lt;br&gt;      I tried using the Compatability Wizard to set the compatability properties of the 64-bit cscript to Windows XP but the window flashed by so fast I don't know what it did.&amp;nbsp; It didn't change the error, though.&amp;nbsp; I am so stuck - anyone have any ideas?&amp;nbsp; Please?&amp;nbsp;&amp;nbsp; Thanks in advance...  &lt;br&gt;  </description><link>http://www.visualbasicscript.com/fb.ashx?m=79814</link><pubDate>Thu, 07 Jan 2010 17:14:41 GMT</pubDate></item><item><title>RE: Script Telnet (gazumba)</title><description>  Compuguide,  &lt;br&gt;       &lt;br&gt;      I had the same problem.  &lt;br&gt;       &lt;br&gt;      I found a solution:  &lt;br&gt;      1. Seek the C: for the four CSCRIPT.EXE files. Each&amp;nbsp;pair of them have the same size, but there are two smaller.  &lt;br&gt;      2. One of these (smaller)&amp;nbsp;is located on the subdir:  &lt;br&gt;      C:\Windows\winsxs\wow64_microsoft-windows-scripting_31bf3856ad364e35_6.1.7600.16385_none_aeb1ef0f4e6bba1d\cscript.exe  &lt;br&gt;      3. Edit its properties and set it to run&amp;nbsp;in a compatibility way using "Windows XP SP3", for example, as I use  &lt;br&gt;      4. Run your scripts using the path for the CSCRIPT.EXE like item 2 above, followed by the script you must run  &lt;br&gt;       &lt;br&gt;      I use it inside batches and the path I copy/paste just one time. To run in the command line you must to include the directory (item 2) in the system path (I really do not know if it will run fine this way, but try it and let me know the results).  &lt;br&gt;       &lt;br&gt;      If you have any sugestions to my solution, let me know. It will be welcome.  &lt;br&gt;      EDITED BY THE AUTHOR &lt;br&gt;      After followed the steps 1 thru 4, just copy the file above to the subdir you are working. The scripts will run as it was in the old Windows (XP or Vista 32) using the command line as shown below without the &amp;lt;&amp;gt; symbols: &lt;br&gt;      cscript &amp;lt;scriptname.vbs&amp;gt; &lt;br&gt;      Good lucky.  &lt;br&gt;  </description><link>http://www.visualbasicscript.com/fb.ashx?m=77487</link><pubDate>Wed, 21 Oct 2009 10:04:38 GMT</pubDate></item><item><title>RE: Script Telnet (Compuguide)</title><description>  Thanks for taking the time to reply. &lt;br&gt;  I agree that it seems to be  a 64bit problem. &lt;br&gt;  I have reverted to TST10.exe but it is rather unreliable. &lt;br&gt;  Please update this thread if and when you find or hear of a solution. &lt;br&gt;  Thanks &lt;br&gt;  </description><link>http://www.visualbasicscript.com/fb.ashx?m=76843</link><pubDate>Tue, 29 Sep 2009 16:25:15 GMT</pubDate></item><item><title>RE: Script Telnet (DiGiTAL.SkReAM)</title><description>  &lt;blockquote class="quote"&gt;&lt;i&gt;Compuguide&lt;/i&gt;&lt;br&gt;  &lt;br&gt;       &lt;br&gt;      This is probably a dead thread but here goes.  &lt;br&gt;       &lt;br&gt;      My script has been running fine on my Vista (32bit) machine.  &lt;br&gt;      I can't get it to run on my new Windows 7 (64bit) machine.  &lt;br&gt;      It fails with:  &lt;br&gt;       &lt;br&gt;      "Error: Activex component can't create object: 'Socket.TCP'  &lt;br&gt;      Code: 800A01AD"  &lt;br&gt;       &lt;br&gt;      I suspect Socket.dll has not been registered properly, but I have registered (and unregistered) it with SocketReg.exe, regsvr32.exe, and C:\Windows\SysWOW64\regsvr32.exe, but it still fails with the same error.  &lt;br&gt;       &lt;br&gt;      Has anyone else got this working with Windows 7 64bit?  &lt;br&gt;       &lt;br&gt;      Thanks  &lt;br&gt;      &lt;/blockquote&gt;  &lt;br&gt;       &lt;br&gt;      I don't have a copy of Windows 7 yet to play with, so I have no way of giving any real advice on this, sorry.&amp;nbsp; I doubt, however, that it is related to Win7 vs. Vista, but rather to 64bit vs. 32bit.&amp;nbsp; And again, the only 64bit versions of operating systems I have right now up and running are my linux servers.&lt;img src="http://www.visualbasicscript.com/upfiles/smiley/s4.gif" alt="" /&gt; </description><link>http://www.visualbasicscript.com/fb.ashx?m=76807</link><pubDate>Mon, 28 Sep 2009 21:46:50 GMT</pubDate></item><item><title>RE: Script Telnet (Compuguide)</title><description>  This is probably a dead thread but here goes. &lt;br&gt;   &lt;br&gt;  My script has been running fine on my Vista (32bit) machine. &lt;br&gt;  I can't get it to run on my new Windows 7 (64bit) machine. &lt;br&gt;  It fails with: &lt;br&gt;      &lt;br&gt;  "Error: Activex component can't create object: 'Socket.TCP'  &lt;br&gt;  Code: 800A01AD"  &lt;br&gt;   &lt;br&gt;  I suspect Socket.dll has not been registered properly, but I have registered (and unregistered) it with SocketReg.exe, regsvr32.exe, and C:\Windows\SysWOW64\regsvr32.exe, but it still fails with the same error. &lt;br&gt;   &lt;br&gt;  Has anyone else got this working with Windows 7 64bit? &lt;br&gt;   &lt;br&gt;  Thanks &lt;br&gt;   &lt;br&gt;  </description><link>http://www.visualbasicscript.com/fb.ashx?m=76747</link><pubDate>Sat, 26 Sep 2009 00:52:34 GMT</pubDate></item><item><title> RE: Script Telnet (4scriptmoni)</title><description>  You can easly check if the connection was successfully or not. &lt;br&gt;  Check out my post  &lt;br&gt;  &lt;a href="http://www.visualbasicscript.com/m_60280/tm.htm" target="_blank" rel="nofollow"&gt;http://www.visualbasicscript.com/m_60280/tm.htm&lt;/a&gt; &lt;br&gt;   &lt;br&gt;  Like &lt;br&gt;  &lt;pre class="prettyprint"&gt;
 On Error Resume Next 
 &amp;nbsp;&amp;nbsp;&amp;nbsp; oSocket.Open
 &amp;nbsp;&amp;nbsp;&amp;nbsp; iErr = Err.Number
 &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;If iErr &amp;lt;&amp;gt; 0 Then 
 &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; 'Log That Server Refused connection and send EMAIl
 &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; Exit Function 
 &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;End If 
 &amp;nbsp;&amp;nbsp;&amp;nbsp; sSocketText = oSocket.GetLine
 &amp;nbsp;&amp;nbsp;&amp;nbsp; oSocket.SendLine "quit"&amp;nbsp;&amp;nbsp;&amp;nbsp; 
 &amp;nbsp;&amp;nbsp;&amp;nbsp; oSocket.Close
 &lt;/pre&gt; &lt;br&gt;   </description><link>http://www.visualbasicscript.com/fb.ashx?m=61974</link><pubDate>Mon, 30 Jun 2008 00:22:26 GMT</pubDate></item><item><title> RE: Script Telnet (ebgreen)</title><description>  Are you restricted to VBS? I suspect this would be trivial in PowerShell. </description><link>http://www.visualbasicscript.com/fb.ashx?m=61768</link><pubDate>Tue, 24 Jun 2008 06:01:30 GMT</pubDate></item><item><title> RE: Script Telnet (simon)</title><description>  ok so i figure i am going to have to use telnet for this, because i am required to test specific ports to see if they're open.&amp;nbsp;  &lt;br&gt;   &lt;br&gt;  ive got a script to run telnet through a command prompt, but i'm having trouble getting it to return a value to tell if it has successfully connected or not.  &lt;br&gt;   &lt;br&gt;  Any ideas? &lt;br&gt;   </description><link>http://www.visualbasicscript.com/fb.ashx?m=61751</link><pubDate>Mon, 23 Jun 2008 17:34:10 GMT</pubDate></item><item><title> RE: Script Telnet (DiGiTAL.SkReAM)</title><description>  I apologize folks it wasn't until just now that I realized the script wasn't correct. &lt;br&gt;  There were a couple of line missing, as it was just the bare function, but without the function name() and end function lines, etc. &lt;br&gt;  And, since I am apparently not allowed to edit previous messages.??? I will post it here. &lt;br&gt;  &amp;nbsp; &lt;br&gt;  MAKE SURE THAT YOU HAVE THE DLL REGISTERED PROPERLY &lt;br&gt;  &amp;nbsp; &lt;br&gt;  Here is a working script. &lt;br&gt;  &lt;pre class="prettyprint"&gt;
 fCheckExchange
 Function fCheckExchange()
 &amp;nbsp;Dim oSocket, iErr, sSocketText
 &amp;nbsp;sSocketText = ""
 &amp;nbsp;Set oSocket = CreateObject("Socket.TCP")
 &amp;nbsp;oSocket.DoTelnetEmulation = True
 &amp;nbsp;oSocket.TelnetEmulation = "TTY"
 &amp;nbsp;oSocket.Host = "odin:25"
 &amp;nbsp;On Error Resume Next 
 &amp;nbsp;oSocket.Open
 &amp;nbsp;iErr = Err.Number
 &amp;nbsp; If iErr &amp;lt;&amp;gt; 0 Then 
 &amp;nbsp;&amp;nbsp; fCheckExchange = 0
 &amp;nbsp;&amp;nbsp; Exit Function 
 &amp;nbsp; End If 
 &amp;nbsp;sSocketText = oSocket.GetLine
 &amp;nbsp;oSocket.SendLine "quit"
 &amp;nbsp;oSocket.Close
 &amp;nbsp;On Error GoTo 0
 &amp;nbsp;fCheckExchange = 0
 &amp;nbsp;If InStr(sSocketText,"Microsoft ESMTP MAIL Service") &amp;lt;&amp;gt; 0 Then WScript.Echo "Exchange Found!"
 End Function
 &lt;/pre&gt; &lt;br&gt;  &amp;nbsp; &lt;br&gt;   </description><link>http://www.visualbasicscript.com/fb.ashx?m=49073</link><pubDate>Thu, 05 Jul 2007 09:15:58 GMT</pubDate></item><item><title> RE: Script Telnet (4scriptmoni)</title><description>  COOL SCRIPT MAN!!! great job. &lt;br&gt;  i was doing telnet with TST10.exe &lt;br&gt;  cheers &lt;br&gt;   &lt;br&gt;   </description><link>http://www.visualbasicscript.com/fb.ashx?m=46769</link><pubDate>Tue, 08 May 2007 08:15:35 GMT</pubDate></item><item><title> RE: Script Telnet (mcds99)</title><description>  This should let me get to the Cisco routers and do configutation in VBS insted of Perl. &lt;br&gt;   &lt;br&gt;  I'll let you know. &lt;br&gt;   </description><link>http://www.visualbasicscript.com/fb.ashx?m=38714</link><pubDate>Fri, 13 Oct 2006 13:44:26 GMT</pubDate></item><item><title> RE: Script Telnet (DiGiTAL.SkReAM)</title><description>  While I am sure everyone appreciates your efforts, if it is a violation of copyright, it shouldn't be posted to the fora. &lt;br&gt;  I am well aware that there are many ways to 'get around' various limitations, but not all of them are aboveboard, and therefore are not proper material for posting here, at least as I understand the rules and the admins' wishes. &lt;br&gt;  &amp;nbsp; &lt;br&gt;  Plus, 99.9% of my scripting is used in a business environment and must therefore be very stringent concerning anything the authorities might frown upon. &lt;br&gt;   </description><link>http://www.visualbasicscript.com/fb.ashx?m=38693</link><pubDate>Fri, 13 Oct 2006 07:30:38 GMT</pubDate></item><item><title> RE: Script Telnet (est)</title><description>  Here is the very very very simple solution.  &lt;br&gt;   &lt;br&gt;  Import this to your registry and mswinsock will be OK! &lt;img src="http://www.visualbasicscript.com/upfiles/smiley/s6.gif" alt="" /&gt; &lt;br&gt;   &lt;br&gt;  ..............the specific reg code was removed........ &lt;br&gt;   &lt;br&gt;  Unfortunately Microsoft regards this as a violation of COPYRIGHT, so please just import these keys just for testing, do not use them in your script.  &lt;br&gt;  &amp;nbsp; &lt;br&gt;  &amp;nbsp; &lt;br&gt;  2006-10-14 edited by est: Sorry everyone, I just wanted to test mswinsock object&amp;nbsp;in vbs. I didn't mean to violate the copyright. &lt;br&gt;   </description><link>http://www.visualbasicscript.com/fb.ashx?m=38692</link><pubDate>Fri, 13 Oct 2006 07:19:45 GMT</pubDate></item><item><title> RE: Script Telnet (DiGiTAL.SkReAM)</title><description>  Generally, you will have problems using&amp;nbsp;this&amp;nbsp;control&amp;nbsp;in VBScript unless you have a Visual Studio or other&amp;nbsp;design app installed on your PC.&amp;nbsp; You will get license errors, etc.&amp;nbsp; A way around this, however is to go to &lt;a href="http://www.gurgensvbstuff.com/index.php?ID=27" target="_blank" rel="nofollow"&gt;here&lt;/a&gt;&amp;nbsp;and download another ocx which will then act as a wrapper for the first ocx.&amp;nbsp; Now, granted, you will then have access to a bunch of other fucntionality, but ya know, it is much easier to use just a single activex component and teh previous simple code example - at least in my mind. &lt;br&gt;  But by itself, mswinsck.ocx is, unfortunately, not generally scriptable via vbscript. </description><link>http://www.visualbasicscript.com/fb.ashx?m=38682</link><pubDate>Fri, 13 Oct 2006 06:06:11 GMT</pubDate></item><item><title> RE: Script Telnet (est)</title><description>  Try MSWinsock.Winsock.1 in VB6, also scriptable with wsh, that's a 107KB mswinsck.ocx </description><link>http://www.visualbasicscript.com/fb.ashx?m=38664</link><pubDate>Fri, 13 Oct 2006 02:28:50 GMT</pubDate></item><item><title> Script Telnet (DiGiTAL.SkReAM)</title><description>  Recently, I was looking through google, trying to figure out how to script my telnet session. &lt;br&gt;  I also found quite a number of posts on here that were struggling with the task.&amp;nbsp; Finally, I came across a freeware DLL &lt;br&gt;  that can be accessed via CreateObject().&amp;nbsp; It is called w3sockets, and it is by dimac.net.&amp;nbsp; The download location is &lt;a href="http://tech.dimac.net/default3.asp?M=FreeDownloads/Menu.asp&amp;amp;P=FreeDownloads/FreeDownloadsstart.asp" target="_blank" rel="nofollow"&gt;here&lt;/a&gt;. &lt;br&gt;  &lt;a href="http://www.dimac.net/Products/FreeProducts/w3Sockets/Reference/Refstart.htm" target="_blank" rel="nofollow"&gt;Here&lt;/a&gt; is the location of the documentation for it. &lt;br&gt;  One of the nice things about this is that it does not show a popup window at all. &lt;br&gt;  One word of warning... the TimeOut value does not work, and always defaults to 20 seconds, no matter what value you put in. &lt;br&gt;   &lt;br&gt;  Here is a script that demonstrates the use of the object to telnet to an IP address and check for the existence of MS Exchange. &lt;br&gt;  &lt;pre class="prettyprint"&gt;
 fCheckExchange
 Function fCheckExchange()
 Dim oSocket, iErr, sSocketText
 sSocketText = ""
 Set oSocket = CreateObject("Socket.TCP")
 oSocket.DoTelnetEmulation = True
 oSocket.TelnetEmulation = "TTY"
 oSocket.Host = "odin:25"
 On Error Resume Next 
 oSocket.Open
 iErr = Err.Number
 &amp;nbsp;If iErr &amp;lt;&amp;gt; 0 Then 
 &amp;nbsp; fCheckExchange = 0
 &amp;nbsp; Exit Function 
 &amp;nbsp;End If 
 sSocketText = oSocket.GetLine
 oSocket.SendLine "quit"
 oSocket.Close
 On Error GoTo 0
 fCheckExchange = 0
 If InStr(sSocketText,"Microsoft ESMTP MAIL Service") &amp;lt;&amp;gt; 0 Then WScript.Echo "Exchange Found!"
 End Function
 &lt;/pre&gt;  &lt;br&gt;   &lt;br&gt;  Another note: There is an object by ActiveExperts, The ActiveSocket Network Communication Toolkit that does the same kind of thing, along with some other functionality.&amp;nbsp; It is a nicer object, overall, but it does come with a $US140/10 computer license fee.&amp;nbsp; Since I prefer to NOT pay for things if there is a free/public domain alternative, I went with w3Sockets.&lt;img src="http://www.visualbasicscript.com/upfiles/smiley/s12.gif" alt="" /&gt;  &lt;br&gt;  &amp;nbsp; &lt;br&gt;  &amp;nbsp; &lt;br&gt;  EDIT(EBGREEN): Added the correction that DM added a few posts down. &lt;br&gt;   </description><link>http://www.visualbasicscript.com/fb.ashx?m=38306</link><pubDate>Tue, 03 Oct 2006 11:55:56 GMT</pubDate></item></channel></rss>
