Windows Scripting
  Home arrow Windows Scripting arrow Working with System Processes in WSH
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  
Silverlight  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
ASP Web Hosting  
ASP.NET Web Hosting 
Windows Web Hosting
 
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

Working with System Processes in WSH
By: Nilpo
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 3
    2008-01-15

    Table of Contents:
  • Working with System Processes in WSH
  • Taking a look under the hood
  • More fun with processes
  • Modifying processes

  • 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


    Working with System Processes in WSH


    (Page 1 of 4 )

    In this article, we’re going to explore the different ways of working with system processes in WSH. Behind every running program in Windows is a process. Those processes control every end-user function that the computer performs.

    Understanding and controlling these processes allows you to do some pretty advanced scripting.  Pretty advanced scripting, in turn, requires pretty advanced techniques and for that we turn to WMI.

    The Windows Management Interface provides scriptable access to core system components and hardware.  It exposes dozens of properties and methods with classes that span nearly every corner of the operating system.

    So why might someone want a script to have the ability to control processes?

    Well, to be quite simple, if you control the processes, you control the entire operating system.  As you can imagine, this can be both extremely useful and potentially dangerous.

    On the surface, processes are just programs.  Notepad, Calculator, and Microsoft Word are applications that rely on underlying processes.  You anti-virus program relies on an underlying process in order to monitor your system's health.

    Some processes are more sophisticated and less visible, controlling such things as the Windows desktop, network connectivity, and Windows Update.  In fact, many processes run hidden, meaning that they don't display a user interface and they don't appear in the task bar.

    The most common scripting tasks are to monitor what tasks are running or to start and stop them.  We'll go into detail on each of these as well as other functions such as raising or lowering a processes' priority level.

    More Windows Scripting Articles
    More By Nilpo


       · Learn how to capture the power of WMI in your WSH scripts to manipulate, create, and...
     

    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...





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 4 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek