Winscripter
  WSH
  Forums
  Downloads
  Books
  Links
  Amazon




Login
Register

© winscripter.com
1998-2004







File Name: wsInetTools
File Size: 27,571 bytes
Downloaded: 7701 times
Posted by Daren on Monday, January 19, 2004 (PST)
Click here to download this file
wsInetTools v0.3 beta: is a COM dll written in C++ that allows you to easily send email and download a web page and binary contents (such as images, programs, etc.)


Description:
COM dll written in C++ that allows you to easily to send email and download web pages and binary content.

Current Version: 0.3 Beta

Release Date: 17 Dec 2000

Author: Daren Thiel

Web Site: http://www.winscripter.com

 

SMTP Example

// Define variables
var smtp, to, from, subject, body;     
          
// Instantiate COM object
mail = new ActiveXObject( "wsInetTools.SMTP" ); 
// Enter you mail server 
mail.MailServer = "smtp.yourdomain.com";     
        
// Set email properties      
from    = "youremail@yourdomain.com";
to      = "recipient@somedomain.com";             
subject = "Testing wsInetTools";                 
body    = "This is just a test message\r\n";   
 
// Send the mail
mail.SendMail(  from, to, subject, body );

 

HTTP Web Page Example

// Define variables
var web, file, url;              
                
// URL of the page want to download
url  = "http://www.winscripter.com/content.html"; 
// Instantiate the COM object
web  = new ActiveXObject( "wsInetTools.HTTP" ); 
 
// Download the page and store in variable 'file'
file = web.GetWebPage( url );

 

HTTP Binary Example

// Instantiate the COM object
var web = new ActiveXObject( "wsInetTools.HTTP" );
// Define the full path to local and remote files
var remoteBinaryFile = "http://www.winscript.com/ads/ad1.gif"
var localBinaryFile  = "e:\\ad1.gif";
// Call GetBinary
web.GetBinary( remoteBinaryFile, localBinaryFile );

Add Your Comment



WSH and ADSI Administrative Scripting

New Articles
  • List installed COM objects and associated ProgIDs
    Script: Lists all COM Objects and their associated ProgIDs (If available). Win32_ClassicCOMClassSetting

  • Script: File Rotator
    Script: Rotate files where the most current file has the lowest number in the archive. When files exceed the retention period, they are deleted. Typically used for log files, backups, etc..

  • Script: Create IIS Website and DNS record
    Script: Dan Casier sent me this script that will create a website and appropriate DNS record. The script is intended for Windows 2000 Server with local DNS and necessary DNS mof installed.


  • Winscripter   |  WSH   |  Forums   |  Downloads   |  Books   |  Links   |  Amazon