Menu Content/Inhalt
Accueil arrow Outils arrow WSHShell arrow WSH Shell : Screenshots

Syndication

Abonnez-vous à ce fil RSS pour être tenu informé des nouveautés de ce site.

WSH Shell : Screenshots Convertir en PDF Version imprimable Suggérer par mail
Écrit par Gilles LAURENT   
19-06-2007

WSH Shell Screenshots

Démarrage de la console WSH :

Microsoft (R) Windows Script Host Version 5.6                                   
Copyright (C) Microsoft Corporation 1996-2001. Tous droits réservés.            
                                                                                
 _ _ _  ___  _ _   ___  _         _  _                                          
| | | |/ __>| | | / __>| |_  ___ | || |                                         
| | | |\__ \|   | \__ \| . |/ ._>| || |                                         
|__/_/ <___/|_|_| <___/|_|_|\___.|_||_|                                         
                                                                                
Windows Script Host (WSH) Shell v1.0.0.4 starting ...                           
                                                                                
Registering components ...                                                      
                                                                                
Loading external modules ...                                                    
  Loading _wshWmi.inc ...                                                       
                                                                                
Welcome ...                                                                     
It´s 19/06/2007 20:08:05 and WSH Shell is up !                                  
                                                                                
Ready.                                                                          
                                                                                
WSH D:\Test>                                                                    

Affichage de l'aide intégrée via la commande builtin _gethelp :

Microsoft (R) Windows Script Host Version 5.6                                   
Copyright (C) Microsoft Corporation 1996-2001. Tous droits réservés.            
                                                                                
 _ _ _  ___  _ _   ___  _         _  _                                          
| | | |/ __>| | | / __>| |_  ___ | || |                                         
| | | |\__ \|   | \__ \| . |/ ._>| || |                                         
|__/_/ <___/|_|_| <___/|_|_|\___.|_||_|                                         
                                                                                
Windows Script Host (WSH) Shell v1.0.0.4 starting ...                           
                                                                                
Registering components ...                                                      
                                                                                
Loading external modules ...                                                    
  Loading _wshWmi.inc ...                                                       
                                                                                
Welcome ...                                                                     
It´s 19/06/2007 20:46:13 and WSH Shell is up !                                  
                                                                                
Ready.                                                                          
                                                                                
WSH D:\Test> _gethelp                                                           
                                                                                
Command                    Category  Synopsis                                   
-------                    --------  --------                                   
_break                     builtin   Aborts the current statement, like CTRL/...
_cleanlss                  builtin   Deletes all defined (Dim´ed) variables s...
_gethelp                   builtin   Provides help and usage information abou...
_more                      builtin   Displays one screen of output at a time.   
_nomore                    builtin   Enables automatic page scrolling.          
_nowrap                    builtin   Disables automatic line wrapping. The ou...
_screensnap                builtin   Takes a console screen buffer snapshot a...
_starttranscript           builtin   Starts a new transcript. All input and o...
_stoptranscript            builtin   Stops and closes the currently started t...
_wrap                      builtin   Enables automatic line wrapping. The out...
ArrayToString              Function  Combines substrings (elements) of an arr...
bDebug                     Property  Enables or disables the internal debug m...
CreateObjectWithConstants  Function  Creates and returns a reference to an Au...
DownloadString             Function  Opens an HTTP connection to a server at ...
FormatTable                Sub       Takes a data array on input and formats ...
GetAlias                   Sub       Returns a list of your WSH Shell aliases.  
GetConstants               Sub       Returns the constants defined for the sp...
GetMembers                 Sub       Gets the members (methods and properties...
hWnd                       Property  The WSH Shell console window handle.       
Include                    Sub       Loads and execute a VBScript file in the...
Match                      Function  Determines whether the search pattern oc...
Name                       Property  The WSH Shell name (aka ´Windows Script ...
nTableColumnWidth          Property  Defines the maximum width of a table for...
Path                       Property  Returns the full path from which the cur...
Pid                        Property  Returns the WSH Shell console Process Id.  
SetAlias                   Sub       Creates or changes an alias (alternate n...
SortArray                  Function  Takes a strings array on input and retur...
StartShell                 Sub       Starts the Windows Script Host (WSH) She...
StopShell                  Sub       Stops the Windows Script Host (WSH) Shel...
strDelims                  Property  Gets or sets the array/string delimiter....
StringToArray              Function  Takes a string value on input and return...
strTableFieldSep           Property  Specifies the field/column separator. Us...
Tid                        Property  Returns the WSH Shell console Thread Id.   
Version                    Property  Returns the WSH Shell current release ve...
                                                                                
WSH D:\Test>                                                                    

Affichage de toutes les propriétés d'une instance WMI (Win32_Process) :

Microsoft (R) Windows Script Host Version 5.6                                   
Copyright (C) Microsoft Corporation 1996-2001. Tous droits réservés.            
                                                                                
 _ _ _  ___  _ _   ___  _         _  _                                          
| | | |/ __>| | | / __>| |_  ___ | || |                                         
| | | |\__ \|   | \__ \| . |/ ._>| || |                                         
|__/_/ <___/|_|_| <___/|_|_|\___.|_||_|                                         
                                                                                
Windows Script Host (WSH) Shell v1.0.0.4 starting ...                           
                                                                                
Registering components ...                                                      
                                                                                
Loading external modules ...                                                    
  Loading _wshWmi.inc ...                                                       
                                                                                
Welcome ...                                                                     
It´s 19/06/2007 21:05:46 and WSH Shell is up !                                  
                                                                                
Ready.                                                                          
                                                                                
WSH D:\Test> set oWmi=New wshWmi                                                
WSH D:\Test> set oProc=oWmi.GetInstance("Win32_Process.handle='0'")             
WSH D:\Test> ft oWmi.GetProperties(oProc),"","Value<>''","*"                    
                                                                                
Property                    Value                                               
--------                    -----                                               
Caption                     System Idle Process                                 
CreationClassName           Win32_Process                                       
CSCreationClassName         Win32_ComputerSystem                                
CSName                      FRSOB001127                                         
Description                 System Idle Process                                 
Handle                      0                                                   
HandleCount                 0                                                   
KernelModeTime              832998192576                                        
Name                        System Idle Process                                 
OSCreationClassName         Win32_OperatingSystem                               
OSName                      Microsoft Windows XP Professional|C:\WINDOWS|       
OtherOperationCount         0                                                   
OtherTransferCount          0                                                   
PageFaults                  0                                                   
PageFileUsage               0                                                   
ParentProcessId             0                                                   
PeakPageFileUsage           0                                                   
PeakVirtualSize             0                                                   
PeakWorkingSetSize          0                                                   
Priority                    0                                                   
PrivatePageCount            0                                                   
ProcessId                   0                                                   
QuotaNonPagedPoolUsage      0                                                   
QuotaPagedPoolUsage         0                                                   
QuotaPeakNonPagedPoolUsage  0                                                   
QuotaPeakPagedPoolUsage     0                                                   
ReadOperationCount          0                                                   
ReadTransferCount           0                                                   
SessionId                   0                                                   
ThreadCount                 1                                                   
UserModeTime                0                                                   
VirtualSize                 0                                                   
WindowsVersion              5.1.2600                                            
WorkingSetSize              16384                                               
WriteOperationCount         0                                                   
WriteTransferCount          0                                                   
                                                                                
WSH D:\Test>                                                                    

Affichage des membres (propriétés et méthodes) d'un objet :

Microsoft (R) Windows Script Host Version 5.6                                   
Copyright (C) Microsoft Corporation 1996-2001. Tous droits réservés.            
                                                                                
 _ _ _  ___  _ _   ___  _         _  _                                          
| | | |/ __>| | | / __>| |_  ___ | || |                                         
| | | |\__ \|   | \__ \| . |/ ._>| || |                                         
|__/_/ <___/|_|_| <___/|_|_|\___.|_||_|                                         
                                                                                
Windows Script Host (WSH) Shell v1.0.0.4 starting ...                           
                                                                                
Registering components ...                                                      
                                                                                
Loading external modules ...                                                    
  Loading _wshWmi.inc ...                                                       
                                                                                
Welcome ...                                                                     
It´s 19/06/2007 21:14:53 and WSH Shell is up !                                  
                                                                                
Ready.                                                                          
                                                                                
WSH D:\Test> Set oCvt=co("OlePrn.OleCvt")                                       
WSH D:\Test> gm(oCvt)                                                           
Sub      OnEndPage ()                                                           
Sub      OnStartPage (piUnk)                                                    
Property DecodeUnicodeName (bstrSrcName)                                        
Property EncodeUnicodeName (bstrSrcName)                                        
Property ToUnicode (bstrString, lCodePage)                                      
Property ToUtf8 (bstrUnicode)                                                   
WSH D:\Test>                                                                    

Exécution d'une commande externe :

Microsoft (R) Windows Script Host Version 5.6                                   
Copyright (C) Microsoft Corporation 1996-2001. Tous droits réservés.            
                                                                                
 _ _ _  ___  _ _   ___  _         _  _                                          
| | | |/ __>| | | / __>| |_  ___ | || |                                         
| | | |\__ \|   | \__ \| . |/ ._>| || |                                         
|__/_/ <___/|_|_| <___/|_|_|\___.|_||_|                                         
                                                                                
Windows Script Host (WSH) Shell v1.0.0.4 starting ...                           
                                                                                
Registering components ...                                                      
                                                                                
Loading external modules ...                                                    
  Loading _wshWmi.inc ...                                                       
                                                                                
Welcome ...                                                                     
It's 19/06/2007 21:38:04 and WSH Shell is up !                                  
                                                                                
Ready.                                                                          
                                                                                
WSH D:\Test> @dir c:\windows\system32\wbem\xml                                  
 Le volume dans le lecteur C s'appelle SYSTEM                                   
 Le numéro de série du volume est FC10-9769                                     
                                                                                
 Répertoire de c:\windows\system32\wbem\xml                                     
                                                                                
20/10/2005  13:26    <REP>          .                                           
20/10/2005  13:26    <REP>          ..                                          
30/08/2002  14:00             9 018 cim20.dtd                                   
30/08/2002  14:00            12 356 wmi20.dtd                                   
30/08/2002  14:00            45 568 wmi2xml.dll                                 
               3 fichier(s)           66 942 octets                             
               2 Rép(s)  16 537 792 512 octets libres                           
                                                                                
WSH D:\Test>                                                                    

Démarrage d'un Transcript: Toutes les entrées / sorties seront consignées dans un fichier texte :

Microsoft (R) Windows Script Host Version 5.6                                   
Copyright (C) Microsoft Corporation 1996-2001. Tous droits réservés.            
                                                                                
 _ _ _  ___  _ _   ___  _         _  _                                          
| | | |/ __>| | | / __>| |_  ___ | || |                                         
| | | |\__ \|   | \__ \| . |/ ._>| || |                                         
|__/_/ <___/|_|_| <___/|_|_|\___.|_||_|                                         
                                                                                
Windows Script Host (WSH) Shell v1.0.0.4 starting ...                           
                                                                                
Registering components ...                                                      
                                                                                
Loading external modules ...                                                    
  Loading _wshWmi.inc ...                                                       
                                                                                
Welcome ...                                                                     
It's 19/06/2007 21:45:24 and WSH Shell is up !                                  
                                                                                
Ready.                                                                          
                                                                                
WSH D:\Test> _starttranscript                                                   
*******************************                                                 
WSH Transcript Start                                                            
Start time : 2007-06-19 21:45:30                                                
Username   : FRSOB001127\Gilles                                                 
Machine    : FRSOB001127 (Microsoft Windows NT 5.1.2600.2)                      
*******************************                                                 
Transcript started, output file is D:\Users\Dev\Copyright\WSH\Release\Transcr...
                                                                                
WSH D:\Test>                                                                    

Dernière mise à jour : ( 20-06-2007 )
 
< Précédent   Suivant >