RSS Forums RSS
Please support our Shell Scripting advertiser: Programming Forums

QUESTION ABOUT .vbs scripts in windows.

Join Date: May 2007
Posts: 27
Reputation: CodyOebel is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 2
CodyOebel CodyOebel is offline Offline
Light Poster

QUESTION ABOUT .vbs scripts in windows.

  #1  
Feb 1st, 2008
Ok, I have noticed that everything I like to do in windows using c++ can easily be done with .vbs scripts. Just to clarify the books I looked into buying to teach me .vbs all mostly talk about vbscripting for html??????????????? Is that what .vbs scripting is usually for ..
EXAMPLE !!!!
  1. Dim theApp, theMailItem
  2.  
  3. Set theApp = WScript.CreateObject("Outlook.Application")
  4. Set theNameSpace = theApp.GetNameSpace("MAPI")
  5.  
  6. Set theMailItem = theApp.CreateItem(0)
  7.  
  8. theMailItem.Recipients.Add "cody.oebel@bloodntissue.org"
  9. theMailItem.Subject = "TESTING EMAIL"
  10. theMailItem.Body = ""
  11. theMailItem.Body = "THIS MESSAGE SHOULD EMAIL PROPERLY" & chr(13)
  12. theMailItem.Body = theMailItem.Body & "THIS IS THE NEXT LINE"
  13. theMailItem.Send
  14. theNameSpace.Logoff

What kind of scripting is this ? it's saved as a .vbs and I'm using c++ to do all my programming need's but time to time I need to have my c++ program stream output to create a .vbs similar to this above. I want to become more proficient with the use of this language. Could someone please recomend a book. I dont get online unless im at work and at home have no time to be on the net having a wife and kids. LOL .. Please someone help

Cody C Oebel (age 24).
Last edited by CodyOebel : Feb 1st, 2008 at 10:21 pm.
Name: Cody Oebel
Place : San Antonio , TX.
AddThis Social Bookmark Button
Reply With Quote  
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 7:49 pm.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC