List Folders in Path with WSH

A how-to code example from ASPFree.

Contributed by
Rating: 5 stars5 stars5 stars5 stars5 stars / 6
February 25, 2001
Rate this Article:
MEH MEH++


SEARCH ASP FREE
TOOLS YOU CAN USE

advertisement
by Joe H. This code tip covers a script I recently used went needing an email from several window 2000 professional clients. We were doing an update and wanted an email without loading an some type of mail agent on each machine. This works in conjunction with the cdosys.dll that is part of the Windows 2000 family. Try it out, its definately handy, this is an alternative to using CDONTS.!

set imsg = createobject("cdo.message")
set iconf = createobject("cdo.configuration")

Set Flds = iConf.Fields
With Flds
.Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "1.1.1.1"
.Update
End With

With iMsg
    Set
.Configuration = iConf
        
.To = "yourid@yourdomain.com"
        
.From = "FromId@yourdomain.com"
        
.CC = "ACCId@meijer.com"
        
.Subject = "A Subject Line"
        
.TextBody = "A Text body message"
        
.fields.update
        
.Send
End With

set imsg
= nothing
set iconf
= nothing

blog comments powered by Disqus
WINDOWS SCRIPTING ARTICLES

- More Windows Scripting Workarounds from Nilpo
- Overloading Methods and More in VBScript
- Improving MFC for Windows Vista
- Regular Expressions in VBScript
- Working with Dates in WMI
- Completing Calendars with VBScript Date Func...
- Building Calendars with VBScript Date Functi...
- Working With Dates and Times in VBScript
- Designing WCF DataContract Classes Using the...
- Understanding Dates and Times in VBScript
- Working With Arrays in VBScript
- Compressed Folders in WSH
- Using .NET Interops in VBScript
- Nilpo`s Scripting Secrets, Vol I
- Database operations using Silverlight 2.0 WC...

ASP Web Hosting ASP.Net Web Hosting Windows Web Hosting
 
 
 

ASP Free Forums 
 RSS  Tutorials RSS
 RSS  Forums RSS
 RSS  All Feeds
Site Map 
Request Media Kit
Write For Us Get Paid 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Privacy Policy 
Support 


© 2003-2012 by Developer Shed. All rights reserved. DS Cluster 3 - Follow our Sitemap
Most Popular Topics
All ASP.Net Tutorials