Windows Scripting
  Home arrow Windows Scripting arrow Page 6 - Overview Of The New Windows Scripting Host...
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
ASP Web Hosting  
ASP.NET Web Hosting 
Mobile Linux 
App Generation ROI 
Windows Web Hosting
 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
WINDOWS SCRIPTING

Overview Of The New Windows Scripting Host 5.6
By: Norbert Cartagena
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 21
    2003-09-22

    Table of Contents:
  • Overview Of The New Windows Scripting Host 5.6
  • Are You Ready?
  • Heeeeeeeere's Your Host.
  • New Contestants, Come On Down!
  • Let's Get This Show On The Road
  • Example Scripts
  • Roll The Credits

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Overview Of The New Windows Scripting Host 5.6 - Example Scripts


    (Page 6 of 7 )

    The following are some example scripts which should allow you to get a feel how the WSH works. Just copy and paste them into Notepad and feel free to play around a bit with them.

    Example 1:

    'Example1.vbs


    'Display WSH and script properties
    Wscript.Echo Wscript.Application
    Wscript.Echo Wscript.FullName
    Wscript.Echo Wscript.Name
    Wscript.Echo Wscript.Path
    Wscript.Echo Wscript.ScriptFullName
    Wscript.Echo Wscript.ScriptName
    Wscript.Echo Wscript.Version

    Example 2:
    'Example2.vbs


    'Adding a network drive and displaying system information

    Set WshNetwork = Wscript.CreateObject("Wscript.Network")

    '
    Print the computer nameuser name, and domain

    Wscript
    .Echo wshNetwork.ComputerName
    Wscript
    .Echo WshNetwork.Username
    Wscript
    .Echo WshNetwork.UserDomain

    'Add a network drive

    WshNetwork.MapNetWorkDrive "L:","\ServernameShare"

    More Windows Scripting Articles
    More By Norbert Cartagena


     

    WINDOWS SCRIPTING ARTICLES

    - Introducing Two-Way Data Binding using Silve...
    - Silverlight 2.0 Application Development with...
    - Burning Multisession CDs with IMAPI2 in WSH
    - Creating a Silverlight 2.0 Application that ...
    - Burning CDs with the IMAPI2 Control
    - Burning CDs in Windows XP with WSH
    - Advanced Word Object Scripting
    - Reading and Printing Word Documents in WSH
    - Scripting Microsoft Word
    - Using WSH to Catalog MP3 Files
    - Reading MP3 ID3 Tags in WSH
    - A Brief Look at Menus in WPF
    - More Examples of Simplified Image Processing...
    - Completing a WPF To-Do List Application
    - Simplified Image Processing in GDI+





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
    Stay green...Green IT