Topic > Wsh V Perl - 848

WSH v PerlWindows Script Host (WSH) and Practical Extraction and Report Language (Perl) are two types of programming languages ​​used for writing scripts. (Perl, 2006) Windows Scripting Host is a tool that provides access to objects in the Windows operating system, such as files, folders, and network items, to two built-in scripting engines. These scripting engines are for the VBScript and JScript scripting languages, which are derivatives of the full Visual Basic and Java programming languages. Because VBScript and JScript are scripting languages, the programs you can develop with them are much simpler and smaller than those you would develop with full programming languages. Additionally, scripting languages ​​are not as robust as full-fledged programming languages. (Schultz, 2000) WSH is language independent in the sense that it can use different Active Scripting language engines. (Windows Script Host, 2006) And while WSH lets you run programs written in these languages, it's not a real language. Basically, WSH is a host where users can write and run scripts, written in a multitude of languages, in a stable environment. Another scripting host that most are familiar with is Microsoft's Internet Explorer. IE allows scripts that use the HTML object model to be rendered intuitively. An unusual aspect of WSH is that it was developed to be general purpose. This means that when using WSH the user has no programming language restrictions. The capabilities of Windows Script Host can be divided into the following categories: "" The ability to inherently perform system administration tasks. "" The ability to use COM objects to perform system administration tasks. ""The ability to add standard programming functionality to WSH-compatible scripting languages.""The ability to run command-line tools.(Microsoft TechNet, 2006)Windows Script Host ships with Windows, which means that most of computers already has the ability to start writing scripts immediately. However, due to the smaller memory footprint, WSH should only be used to perform quick and simple tasks. Running your scripts via WSH is incredibly simple; since it is integrated into most operating systems, the user simply double-clicks the script icon and the scripts run. WSH can run in two separate modes within Windows. The first of these modes is Protected Mode Windows-based Hosting, or Wscript. By running scripts in Wscript, the results will appear as "popups" on your desktop. The other mode, real-mode command shell-based host (Cscript), allows the user to run scripts from the command-line interface.