m.lev-yashin-1st-klub-union-dynamo-balon-1963-fc-s8.prestasi.web.id Layanan Informasi 17 Jam
Telp/Fax : 021-8762002, 8762003, 8762004, 87912360
HP/SMS : 081 1110 4824 27, 0812 9526 2009, 08523 1234 000
WhatsApp : 0817 0816 486, 0812 9526 2009
email : _Hubungi Kami__ silahkan klik
Chatting dengan Staf :
ggkarir.com
ggiklan.com
Pilih Bahasa :   ID   EN   Permintaan Katalog / Brosur (GRATIS via POS)   Ensiklopedia Lowongan Kerja Iklan

   
Cari  
    Ilmu Komputer

    Sebelumnya  (Windows Runtime XAML Framework) (Windows Server 2003)  Berikutnya    

Windows Script Host

The icon for Windows Script Host

The Microsoft Windows Script Host (WSH) is an automation technology for Microsoft Windows operating systems that provides scripting abilities comparable to batch files, but with a wider range of supported features. It was originally called Windows Scripting Host, but was renamed for the second release.

It is language-independent in that it can make use of different Active Scripting language engines. By default, it interprets and runs plain-text JScript (.JS and .JSE files) and VBScript (.VBS and .VBE files).

Users can install different scripting engines to enable them to script in other languages, for instance PerlScript. The language independent filename extension WSF can also be used. The advantage of the Windows Script File (.WSF) is that it allows the user to use a combination of scripting languages within a single file.

WSH engines include various implementations for the REXX, BASIC, Perl, Ruby, Tcl, PHP, JavaScript, Delphi, Python, XSLT, and other languages.

Windows Script Host is distributed and installed by default on Windows 98 and later versions of Windows. It is also installed if Internet Explorer 5 (or a later version) is installed. Beginning with Windows 2000, the Windows Script Host became available for use with user login scripts.

Contents

Usage

Windows Script Host may be used for a variety of purposes, including logon scripts, administration and general automation. Microsoft describes it as an administration tool.[1] WSH provides an environment for scripts to run – it invokes the appropriate script engine and provides a set of services and objects for the script to work with.[1] These scripts may be run in either GUI mode (WScript.exe) or command line mode (CScript.exe) offering flexibility to the user for interactive or non-interactive scripts.[2] WSH implements an object model which exposes a set of Component Object Model (COM) interfaces.[3]

Examples

The first example is very simple; it shows some VBScript which uses the root WSH COM object "WScript" to display a message with an 'OK' button. Upon launching this script the CScript or WScript engine would be called and the runtime environment provided.

Content of a file hello0.vbs

WScript.Echo "Hello world"WScript.Quit

WSH programming can also use the JScript language.

Content of a file hello1.js

WSH.Echo("Hello world");WSH.Quit();

Or, code can be mixed in one WSF file, such as VBScript and JScript, or any other:

Content of a file hello2.wsf

<job><script language="VBScript">  MsgBox "hello world (from vb)"</script><script language="JScript">  WSH.echo("hello world (from js)");</script></job>

Security concerns

Windows applications and processes may be automated using a script in Windows Script Host. Viruses and malware could be written to exploit this ability. Thus, some suggest disabling it for security reasons.[4] Alternatively, antivirus programs may offer features to control .vbs and other scripts which run in the WSH environment.

Since version 5.6 of WSH, scripts can be digitally signed programmatically using the Scripting.Signer object in a script itself, provided a valid certificate is present on the system. Alternatively, the signcode tool from the Platform SDK, which has been extended to support WSH filetypes, may be used at the command line.[5]

By using Software Restriction Policies introduced with Windows XP, a system may be configured to execute only those scripts which have been digitally signed, thus preventing the execution of untrusted scripts.[6]

Available scripting engines

NameLanguageFile extensionsAvailabilityProduced ByStatusDateNotes
VBScriptMicrosoft Visual Basic, Scripting Edition.vbsInstalled by defaultMicrosoftdefault install1999 
JScriptMicrosoft JScript.jsInstalled by defaultMicrosoftdefault install1999 
PerlScriptPerl.plswith ActiveState PerlActiveStateOpen source1999 
ooRexxScriptREXX.rxswith Open Object RexxOpen Object Rexx teamOpen source  
PythonScriptPython.pysSourceForgeThe Pywin32 projectOpen source  
TclScriptTcl/Tk.tclsSourceForgeActiveState or third partyOpen source  
ActivePHPScriptPHP.phpswith PHPPHP teamOpen source  
RubyScriptRuby.rbswith RubyRuby teamOpen source  
Object REXX engineObject REXX with IBM Object REXXIBMCommercial2002 
Delphi scripting engineDelphi In some Delphi distributions or resource kits Commercial2003 

Version history

Windows versionShipped with WSH versionLast redistributable version
Windows 95None (separate redistributable)5.6
Windows NT 4.0None (separate redistributable)5.6
Windows 981.05.6
Windows 20002.0 (also termed WSH 5.1)5.7
Windows Me2.0 (also termed WSH 5.1)5.6
Windows XP, Windows Server 20035.65.7
Windows Vista, Windows Server 2008, Windows XP SP35.7Not applicable
Windows 7, Windows Server 2008 R25.8Not applicable
Windows 8, Windows Server 20125.8Not applicable

The redistributable version of WSH version 5.6 can be installed on Windows 95/98/Me and Windows NT 4.0/2000. WSH 5.7 is downloadable for Windows 2000, Windows XP and Windows Server 2003. Recently, redistributable versions for older operating systems (Windows 9x and Windows NT 4.0) are no longer available from the Microsoft Download Center.

As of Windows XP Service Pack 3, release 5.7 is not needed as it is included.

See also

References

External links

    Sebelumnya  (Windows Runtime XAML Framework) (Windows Server 2003)  Berikutnya    


Gilland GroupGilland GroupKedokteranAgamaDialog Agama HinduAneka



Tags: Windows Script Host, Ilmu Komputer, 2272, Windows Script Host The icon for Windows Script Host The Microsoft Windows Script Host ( WSH ) is an automation technology for Microsoft Windows operating systems that provides scripting abilities comparable to batch files but with a wider range of supported features, It was originally called Windows Scripting Host but was renamed for the second release, It is language independent in that it can, Windows Script Host, Bahasa Indonesia, Contoh Instruksi, Tutorial, Referensi, Buku, Petunjuk m.lev yashin 1st klub union dynamo balon 1963 fc s8, prestasi.web.id
 Berbagai Promosi    Program Perkuliahan Blended di 112 PTS Terbaik    Pendaftaran Online    Lowongan Karir

 Kelas Pengusaha    Program S2 (Magister)    Program Perkuliahan Reguler    Kuliah Paralel    Platform Try Out Online    Waktu Shalat    Al-Quran Online    Referensi Informatika    Tips & Trik TPA/Psikotes    Ensiklopedis Bebas    Kumpulan Perdebatan    Pengajuan Beasiswa    Download Brosur    Program Kuliah Gratis
Infokan ke Rekan
Nama Anda

Email Anda

Email Rekan 1
♙ harus diisi dengan benar

Tujuan Penting
silakan klik di bawah ini
TPA Kemampuan Teknikal
Kumpulan Ilmu Online

kuliahmalam.co.id  |  kuliahsore.co.id  |  uin-al-azhaar.web.id