The MicrosoftWindows Script Host (WSH) (formerly named Windows Scripting Host) is an automation technology for Microsoft Windowsoperating systems that provides scripting abilities comparable to batch files, but with a wider range of supported features. This tool was first provided on Windows 95 after Build 950a on the installation discs as an optional installation configurable and installable by means of the Control Panel, and then a standard component of Windows 98 (Build 1111) and subsequent and Windows NT 4.0 Build 1381 and by means of Service Pack 4. The WSH is also a means of automation for Internet Explorer via the installed WSH engines from IE Version 3.0 onwards; at this time VBScript became means of automation for Microsoft Outlook 97.[1] The WSH is also an optional install provided with a VBScript and JScript engine for Windows CE 3.0 and following and some third-party engines including Rexx and other forms of Basic are also available.[2][3][4]
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 multiple scripts ("jobs") as well as a combination of scripting languages within a single file.
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.
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.[5] 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.[5] These scripts may be run in GUI mode (WScript.exe) or command line mode (CScript.exe), or from a COM object (wshom.ocx), offering flexibility to the user for interactive or non-interactive scripts.[6]Windows Management Instrumentation is also scriptable by this means.
The WSH, the engines, and related functionality are also listed as objects which can be accessed and scripted and queried by means of the VBA and Visual Studio object explorers and those for similar tools like the various script debuggers, e.g. Microsoft Script Debugger, and editors.
WSH implements an object model which exposes a set of Component Object Model (COM) interfaces.[7] So in addition to ASP, IIS, Internet Explorer, CScript and WScript, the WSH can be used to automate and communicate with any Windows application with COM and other exposed objects, such as using PerlScript to query Microsoft Access by various means including various ODBC engines and SQL, ooRexxScript to create what are in effect Rexx macros in Microsoft Excel, Quattro Pro, Microsoft Word, Lotus Notes and any of the like, the XLNT script to get environment variables and print them in a new TextPad document, and so on.
Python in the form of ActiveStatePythonScript can be used to automate and query the data in SecureCRT, as with other languages with installed engines, e.g. PerlScript, ooRexxScript, PHPScript, RubyScript, LuaScript, XLNT and so on. One notable exception is Paint Shop Pro, which can be automated in Python by means of a macro interpreter within the PSP programme itself rather than using the PythonScript WSH engine or an external Python implementation such as Python interpreters supplied with Unix emulation and integration software suites or other standalone Python implementations et al.[9][10] as an intermediate and indeed can be programmed like this even in the absence of any third-party Python installation; the same goes for the Rexx-programmable terminal emulator Passport.[11] The SecureCRT terminal emulator, SecureFX FTP client, and related client and server programmes from Van Dyke are as of the current versions automated by means of the WSH so any language with an installed engine may be used; the software comes with VBScript, JScript, and PerlScript examples.
As of the most recent releases and going back a number of versions now, the programmability of 4NT / Take Command in the latest implementations (by means of "@REXX" and similar for Perl, Python, Tcl, Ruby, Lua, VBScript, JScript and the like and so on) generally uses the WSH engine.[12] The ZOC terminal emulator gets its ability to be programmed in Rexx by means of an external interpreter, one of which is supplied with the programme, and alternate Rexx interpreters can be specified in the configuration of the programme.[13][14] The MKS Toolkit provides PScript, a WSH engine in addition to the standard Perl interpreter perl.exe which comes with the package.
VBScript, JScript, and some third-party engines have the ability to create and execute scripts in an encoded format which prevents editing with a text editor; the file extensions for these encoded scripts is .vbe and .jse and others of that type.
Unless otherwise specified, any WSH scripting engine can be used with the various Windows server software packages to provide CGI scripting. The current versions of the default WSH engines and all or most of the third-party engines have socket abilities as well; as a CGI script or otherwise, PerlScript is the choice of many programmers for this purpose and the VBScript and various Rexx-based engines are also rated as sufficiently powerful in connectivity and text-processing abilities to also be useful. This also goes for file access and processing—the earliest WSH engines for VBScript and JScript do not since the base language did not,[15] whilst PerlScript, ooRexxScript, and the others have this from the beginning.
WinWrap Basic, SaxBasic and others are similar to Visual Basic for Applications, These tools are used to add scripting and macro abilities to software being developed and can be found in earlier versions of Host Explorer for example. Many other languages can also be used in this fashion. Other languages used for scripting of programmes include Rexx, Tcl, Perl, Python, Ruby, and others which come with methods to control objects in the operating system and the spreadsheet and database programmes.[16] One exception is that the Zoc terminal emulator is controlled by a Rexx interpreter supplied with the package or another interpreter specified by the user; this is also the case with the Passport emulator.
Any scripting language installed under Windows can be accessed by external means of PerlScript, PythonScript, VBScript and the other engines available can be used to access databases (Lotus Notes, Microsoft Access, Oracle Database, Paradox) and spreadsheets (Microsoft Excel, Lotus 1-2-3, Quattro Pro) and other tools like word processors, terminal emulators, command shells and so on. This can be accomplished by means of the WSH, so any language can be used if there is an installed engine.
In recent versions of the Take Command enhanced command prompt and tools, the "script" command typed at the shell prompt will produce a list of the currently installed engines, one to a line and therefore CR-LF delimited.[17][18][19]
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:
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.[20] 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.[21]
By using Software Restriction Policies introduced with Windows XP, a system may be configured to execute only those scripts which are stored in trusted locations, have a known MD5 hash, or have been digitally signed by a trusted publisher, thus preventing the execution of untrusted scripts.[22]
Available scripting engines
Note: By definition, all of these scripting engines can be utilised in CGI programming under Windows with any number of programmes and set up, meaning that the source code files for a script used on a server for CGI purposes could bear other file extensions such as .cgi and so on. The aforementioned ability of the Windows Script Host to run a script with multiple languages in it in files with a .wsh extension. Extended Html and XML also add to the additional possibilities when working with scripts for network use, as do Active Server Pages and so forth. Moreover, Windows shell scripts and scripts written in shells with enhanced capabilities like TCC, 4NT, etc. and Unix shells under interoperability software like the MKS Toolkit can have scripts embedded in them as well.
Status as of 2015-09-30. Language has elements of Basic, Forth, Fortran, and others.
SharpCalcScript WSH Engine
Sharp graphing calculators on-board programming language
Sharp S-Basic as ported to windows as NeusSFortran
.scsb
Project Web/FTP Sites
independent programmers
Experimental
2015
Planned
Status as of 2015-09-30. Also subsumes the S-Basic language of Sharp's Pocket Computers.
There have been suggestions of creating engines for other languages, such as LotusScript, SaxBasic, BasicScript, KiXtart, awk, bash, csh and other Unix shells, 4NT, cmd.exe (the Windows NT shell), Windows PowerShell, DCL, C, C++, Fortran and others.[24]
The XLNT language[25] is based on DCL and provides a very large subset of the language along with additional commands and statements and the software can be used in three ways: the WSH engine (*.xcs), the console interpreter (*.xlnt) and as a server and client side CGI engine (*.xgi).[26]
When a server implementing CGI such as the Windows Internet Information Server, ports of Apache and others, all or most of the engines can be used; the most commonly used are VBScript, JScript, PythonScript, PerlScript, ActivePHPScript, and ooRexxScript. The MKS Toolkit PScript program also runs Perl. Command shells like cmd.exe, 4NT, ksh, and scripting languages with string processing and preferably socket functionality are also able to be used for CGI scripting; compiled languages like C++, Visual Basic, and Java can also be used like this. All Perl interpreters, ooRexx, PHP, and more recent versions of VBScript and JScript can use sockets for TCP/IP and usually UDP and other protocols for this.
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 [when?], redistributable versions for older operating systems (Windows 9x and Windows NT 4.0) are no longer available from the Microsoft Download Center.
Since Windows XP Service Pack 3, release 5.7 is the only version available from Microsoft, with newer revisions being included in newer versions of Windows since.
^LLC), Tara Meyer (Aquent (30 June 2006). "Providing a Secure eXPerience". msdn.microsoft.com. Archived from the original on 10 November 2017. Retrieved 30 April 2018.
Political philosophy of individual liberty and representative democracy This article is about a political and social philosophy. For the United States political party, see Republican Party (United States). Not to be confused with Political positions of the Republican Party. This article is part of a series on thePolitics of the United States Federal government Constitution of the United States Law Taxation Policy Legislature United States Congress House of Representatives Speaker Mike Johnson...
Sông Công Thành phố thuộc tỉnh Thành phố Sông Công Biểu trưngHành chínhQuốc gia Việt NamVùngĐông Bắc BộTỉnhThái NguyênTrụ sở UBNDĐường Trần Phú, phường Thắng LợiPhân chia hành chính7 phường, 3 xãThành lập 11/4/1985: thành lập thị xã Sông Công[1] 15/5/2015: thành lập thành phố Sông Công[2] Loại đô thịLoại IIINăm công nhận2010[3]Địa lýTọa độ: 21°31′48″B 105°54′10″...
المجموعة الاقتصادية لدول وسط إفريقيا الأرض والسكان اللغة الرسمية الفرنسية، والبرتغالية، والإسبانية الحكم التأسيس والسيادة التاريخ تاريخ التأسيس 18 أكتوبر 1983 بيانات أخرى الموقع الرسمي الموقع الرسمي وسيط property غير متوفر. تعديل مصدري - تعديل دول المج...
Hitz!album studio karya Fariz R.M.DirilisMaret 1989Direkam8-18 Januari 1989StudioSuperdigi Studio, JakartaGenrePopDurasi53:40LabelGrammy RecordsProduserDorie KalmasFariz R.M.Kronologi Fariz R.M. Living in the Western World(1988) Hitz!(1989) Fashionova(1989) Hitz! adalah album kesepuluh dari musisi Fariz R.M. yang dirilis pada tahun 1989 di bawah label Grammy Records. Album tersebut merupakan album ketiganya dengan label Grammy. Album ini berisi lagu-lagu ciptaan Fariz R.M. yang telah dibu...
Italian mountaineer, adventurer and explorer (born 1944) Reinhold MessnerMessner in 2017Personal informationNationalityItalianBorn (1944-09-17) 17 September 1944 (age 79)Brixen (Bressanone), South Tyrol, ItalyWebsiteOfficial websiteClimbing careerKnown forFirst to climb all 14 eight-thousandersFirst ascents Agnér northeast face Nanga Parbat Rupal face Heiligkreuzkofel middle pillar Marmolada south face Yerupaja east face Yerupaja Chico Major ascentsFirst solo ascent of Mount Everest and...
هذه المقالة بحاجة لصندوق معلومات. فضلًا ساعد في تحسين هذه المقالة بإضافة صندوق معلومات مخصص إليها. كان المستوطنون اليهود الأوائل في نيوزيلندا تجارًا يهودًا بريطانيين. تبعهم أعداد صغيرة من المهاجرين اليهود البريطانيين، كان بعضهم مدعومًا من قبل جمعية خيرية يهودية في لندن كا
Pour les articles homonymes, voir Colonel (homonymie) et Colonel général. En France, le colonel général est un officier général chargé de tous les régiments d'une même arme ; il est considéré comme le colonel de tous les régiments de cette arme. On trouve notamment un colonel général de l’infanterie et un de la cavalerie (voir plus bas). Le colonel général de l'infanterie ayant trop d'importance, Louis XIV supprime sa charge en 1661 et ne nomme plus que des colonels gé...
Traber in Frankreich Trabrennen in den USA Traber auf Schnee in der Schweiz Der Trabrennsport (Trabrennen) ist eine Variante des Pferderennsports. Es ist nur die Gangart Trab erlaubt. Der Trabrennsport nahm und nimmt auch erheblichen Einfluss auf die Pferdezucht. So verdankt der Traber seine Zucht vor allem den Erfordernissen der Rennbahn. Auch im Trabrennsport sind Pferdewetten zugelassen, und es werden hohe Preise vergeben, die mitunter zu negativen Begleiterscheinungen (Doping, Bestechung ...
Blontakng Blontang, Baluntang, atau Blontakng adalah patung ukir terbuat dari kayu ulin yang merupakan patung simbol pada upacara kematian Kwangkey oleh Suku Dayak Benuaq penganut agama Kaharingan di Provinsi Kalimantan Timur, Indonesia.[1] Ukiran pada Blontang biasanya berbentuk sosok manusia yang merupakan gambaran sosok yang meninggal.[2] Seperti contohnya Blontang yang ditemukan di Tanjung Issuy, Kalimantan Timur, Blontang tersebut berbentuk sosok manusia dengan wajah laki...
Cambung atau kaserol (Bahasa Inggris: casserole) adalah sejenis panci atau mangkuk besar dan dalam yang digunakan untuk memasak berbagai hidangan yang dimasak dengan cara dimasukkan ke oven. Istilah kaserol juga dapat merujuk ke kategori makanan yang dimasak dalam wadah seperti ini. Untuk membedakan kedua kegunaan tersebut, kaserol sebagai alat masak dapat disebut sebagai cambung atau panci kaserol, sedangkan makanannya hanya disebut kaserol. Wajan yang sama sering digunakan untuk memasak dan...
For the folk deity, see Madurai Veeran. 2018 Indian filmMadura VeeranTheatrical release posterDirected byP. G. MuthiahWritten byP. G. MuthiahProduced byViji SubramanianStarringShanmuga PandianMeenakshiCinematographyP. G. MuthiahEdited byPraveen K. L.Music bySanthosh DhayanidhiProductioncompaniesV StudiosPG Media WorksRelease date 2 February 2018 (2018-02-02) CountryIndiaLanguageTamil Madura Veeran (transl. Warrior from Madurai) is a 2018 Indian Tamil-language action drama...
Stasiun Tanjungbalai Stasiun Tanjungbalai Tahun 2023LokasiJalan Letjend Suprapto No. 4Tanjungbalai Kota IV, Tanjungbalai Utara, Tanjungbalai, Sumatera Utara 21322IndonesiaKetinggian+2,87 mOperatorKereta Api IndonesiaDivisi Regional I Sumatera Utara dan AcehLetak dari pangkal km 174+442 lintas Medan-Tebing Tinggi-Kisaran-Tanjungbalai km 0+000 lintas Tanjungbalai–Teluk Nibung[1] Jumlah peronSatu peron sisi yang rendahJumlah jalur3Informasi lainKode stasiunTNB9600[2]Klasifikasi...
Artikel ini tidak memiliki referensi atau sumber tepercaya sehingga isinya tidak bisa dipastikan. Tolong bantu perbaiki artikel ini dengan menambahkan referensi yang layak. Tulisan tanpa sumber dapat dipertanyakan dan dihapus sewaktu-waktu.Cari sumber: Claude Auchinleck – berita · surat kabar · buku · cendekiawan · JSTOR Claude AuchinleckPotret oleh Cecil Beaton, ca. 1945JulukanThe AukLahir(1884-06-21)21 Juni 1884Aldershot, Hampshire, Inggris[...
1993 single by Sting If I Ever Lose My Faith in YouSingle by Stingfrom the album Ten Summoner's Tales Released1 February 1993 (1993-02-01)[1]Length4:29LabelA&MSongwriter(s)StingProducer(s) Sting Hugh Padgham Sting singles chronology It's Probably Me (1992) If I Ever Lose My Faith in You (1993) Seven Days (1993) Music videoSting - If I Ever Lose My Faith In You (Official Music Video) on YouTube If I Ever Lose My Faith in You is a song by English singer-songwriter Sti...
Untung SuropatiInformasi pribadiLahir19 Desember 1958 (umur 64)Purbalingga, Jawa TengahAlma materAkademi Angkatan Laut (1984)Karier militerPihak IndonesiaDinas/cabang TNI Angkatan LautMasa dinas1984 - 2016Pangkat Laksamana Muda TNISatuanPenerbalSunting kotak info • L • B Laksamana Muda TNI (Purn.) Untung Suropati (lahir 19 Desember 1958) adalah seorang Purnawirawan perwira tinggi TNI Angkatan Laut dan lulusan Akademi Angkatan Laut Angkatan-29 tahun 1984 dari Korps...
Rugby teamMosmanFull nameMosman Rugby ClubUnionRugby AustraliaNickname(s)Mosman WhalesFounded1893; 130 years ago (1893)LocationMosman, AustraliaRegionNew South WalesGround(s)Rawson Oval Balmoral OvalLeague(s)1st Division New South Wales Suburban Rugby Union Team kit Official websitewww.mosmanrugby.com.au Mosman Rugby Club (known as The Mosman Whales) is an Australian rugby union club. It is based is Mosman on the Lower North Shore of Sydney. Home games are played at Rawson O...
2009 video game 2009 video gameInquisitorDeveloper(s)CinemaxWriter(s)Johan JustoňPlatform(s)Microsoft WindowsReleaseCzech Republic: November 9, 2009 Worldwide: September 5, 2012Genre(s)Role-playingMode(s)Single player Inquisitor is a role-playing video game developed by Czech company Cinemax. The game was in development for almost 10 years before its release in 2009.[1][2] Three more years were needed to translate the game into English, and it was released on GOG.com on ...
Former part of British Rail Regional RailwaysProvincial156438 at Bristol Temple Meads, May 1989.OverviewMain region(s)East Anglia, North West England, North East England, Wales, South West EnglandOther region(s)East Midlands, West Midlands (region), Scotland, MerseysideParent companyBritish RailDates of operation1982–1997SuccessorsCentral Trains, First North Western, Midland Mainline, Arriva Trains Merseyside, Wales & West, Valley Lines Regional Railways was one of the three passeng...
Taiwanese TV series or program Hi Working GirlChineseHi 上班女郎Hanyu PinyinHi shàng bān nǚ láng Genre Romance Comedy Based onAsakura-kun Chotto!by Kenichi OishiYumemi IshidukaWritten by Angie Chai Wu I-jan Wen Yu-fang Mao Hsun-jung Directed by Huang Ke-i Wu Ssu-ta Starring Jolin Tsai Show Lo Megan Lai Wen Wen Opening themeSay Love You by Jolin TsaiEnding themeYou Say Yours I Say Mine by Show LoCountry of originTaiwanOriginal languageMandarinNo. of episodes23ProductionExecutive p...