Windows Script File
A Windows Script File (WSF) is a file type used by the Microsoft Windows Script Host. It allows mixing the scripting languages JScript and VBScript within a single file, or other scripting languages such as Perl, Object REXX, Python, or Kixtart if installed by the user. These types of scripts may also be used to link many other external scripts together using a src parameter on the <script></code> tag in a manner similar to <a href="/wiki/HTML" title="HTML">HTML</a>. Windows Script Files have the extension <code>".WSF"</code>. A WSF makes reference to each script module in a very basic <a href="/wiki/XML" title="XML">XML</a> hierarchy as shown below, adhering to those standards outside the <code class="nowrap" style=""><script></code> tags. Literal use of "<code class="nowrap" style=""></s
- Comment
- enA Windows Script File (WSF) is a file type used by the Microsoft Windows Script Host. It allows mixing the scripting languages JScript and VBScript within a single file, or other scripting languages such as Perl, Object REXX, Python, or Kixtart if installed by the user. These types of scripts may also be used to link many other external scripts together using a src parameter on the <script></code> tag in a manner similar to <a href="/wiki/HTML" title="HTML">HTML</a>. Windows Script Files have the extension <code>".WSF"</code>. A WSF makes reference to each script module in a very basic <a href="/wiki/XML" title="XML">XML</a> hierarchy as shown below, adhering to those standards outside the <code class="nowrap" style=""><script></code> tags. Literal use of "<code class="nowrap" style=""></s
- ContainerFor
- enScripts
- Genre
- enScripting
- Has abstract
- enA Windows Script File (WSF) is a file type used by the Microsoft Windows Script Host. It allows mixing the scripting languages JScript and VBScript within a single file, or other scripting languages such as Perl, Object REXX, Python, or Kixtart if installed by the user. These types of scripts may also be used to link many other external scripts together using a src parameter on the <script></code> tag in a manner similar to <a href="/wiki/HTML" title="HTML">HTML</a>. Windows Script Files have the extension <code>".WSF"</code>. A WSF makes reference to each script module in a very basic <a href="/wiki/XML" title="XML">XML</a> hierarchy as shown below, adhering to those standards outside the <code class="nowrap" style=""><script></code> tags. Literal use of "<code class="nowrap" style=""></script>" or "<script></code>" inside your <code class="nowrap" style=""><script></code> tags and similar challenges can be handled by the use of <a href="/wiki/CDATA" title="CDATA">CDATA</a>, as shown within the examples.</p><div id="toc" class="toc" role="navigation" aria-labelledby="mw-toc-heading"><input type="checkbox" role="button" id="toctogglecheckbox" class="toctogglecheckbox" style="display:none" /><div class="toctitle" lang="en" dir="ltr"><h2 id="mw-toc-heading">Contents</h2><span class="toctogglespan"><label class="toctogglelabel" for="toctogglecheckbox"></label></span></div><ul><li class="toclevel-1 tocsection-1"><a href="#Error_isolation"><span class="tocnumber">1</span> <span class="toctext">Error isolation</span></a></li><li class="toclevel-1 tocsection-2"><a href="#Mixed_language_support"><span class="tocnumber">2</span> <span class="toctext">Mixed language support</span></a></li><li class="toclevel-1 tocsection-3"><a href="#Exposing_constants"><span class="tocnumber">3</span> <span class="toctext">Exposing constants</span></a></li><li class="toclevel-1 tocsection-4"><a href="#See_also"><span class="tocnumber">4</span> <span class="toctext">See also</span></a></li><li class="toclevel-1 tocsection-5"><a href="#External_links"><span class="tocnumber">5</span> <span class="toctext">External links</span></a></li></ul></div><h2><span class="mw-headline" id="Error_isolation">Error isolation</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Windows_Script_File&action=edit§ion=1" title="Edit section: Error isolation">edit</a><span class="mw-editsection-bracket">]</span></span></h2><p>A WSF may be useful for isolating errors. Its modular nature prevents one script reference from interfering with another. Here is a WSF example with one module that produces an error and one that does not:</p><div class="mw-highlight mw-highlight-lang-aspx-vb mw-content-ltr" dir="ltr"><pre><span></span><span class="cp"><?xml version="1.0" ?></span> <span class="nt"><job</span> <span class="na">id=</span><span class="s">"Partially works"</span><span class="nt">></span> <span class="c"><!-- This will not work --></span> <span class="nt"><script</span> <span class="na">language=</span><span class="s">"VBScript"</span><span class="nt">></span><span class="c">' <![CDATA[</span> <span class="n">WScript</span><span class="p">.</span><span class="n">echo</span> <span class="mi">4</span><span class="o">/</span><span class="mi">0</span> <span class="c">' Oh, boy! You cannot divide by zero...</span> <span class="o">]]></span> <span class="nt"></script> <span class="c"> <!-- This will work... definitely... --></span> <span class="nt"> <script< pan> <span class="na">language=</span> <span class="s">"VBScript"</span> <span class="nt">></span> <span class="o"><</span> <span class="p">!</span> <span class="o">[</span> <span class="n">CDATA</span> <span class="o">[</span> <span class="n">WScript</span> <span class="p">.</span> <span class="n">echo</span> <span class="s">"Hello, Scripters!"</span> <span class="o">&</span> <span class="n">vbNewline</span> <span class="o">&</span> _ <span class="s">"Fantastic! It worked!"</span> <span class="c">' ]]></span> <span class="nt"></span> <span class="nt"></span> </script<></span>
- Hypernym
- Type
- Is primary topic of
- Windows Script File
- Label
- enWindows Script File
- Link from a Wikipage to an external page
- msdn2.microsoft.com/en-us/library/15x4407c.aspx
- web.archive.org/web/20090315062650/http:/www.microsoft.com/technet/scriptcenter/scripts/language.mspx
- Link from a Wikipage to another Wikipage
- .NET Framework
- Active Scripting
- ActiveX Data Objects
- ArrayList
- ASCII
- Category:Windows administration
- CDATA
- HTML
- HTML Application
- Integrated development environment
- JScript
- Kixtart
- Microsoft
- Object REXX
- Perl
- Python (programming language)
- Recordset
- Scripting language
- Shell script
- The Wayback Machine
- VBScript
- Visual Basic
- Windows PowerShell
- Windows Script Host
- XML
- Name
- enWindows Script File
- Owner
- Microsoft
- SameAs
- 4xDpX
- m.0fd8v8
- Q8024450
- Subject
- Category:Windows administration
- WasDerivedFrom
- Windows Script File?oldid=1077799612&ns=0
- WikiPageLength
- 7739
- Wikipage page ID
- 5913782
- Wikipage revision ID
- 1077799612
- WikiPageUsesTemplate
- Template:Infobox file format
- Template:Tag
- Wordnet_type
- synset-format-noun-1