A Windows script (*.wsf) file is a text document containing Extensible Markup Language (XML) code. It incorporates several features that offer you increased scripting flexibility. Because Windows script files are not engine-specific, they can contain script from any Windows Script compatible scripting engine. They act as a container.
features supported by .wsf:

  • Include statements: Incorporate functions from VBScript or JScript files into your Windows Script Host project.
  • Multiple engines: Use more than one scripting language per file.
  • Type libraries: Add constants to your code.
  • Tools: Edit files with any XML editor.
  • Multiple jobs in one file: Store all of your code in a single location.

Include Statements
The following example shows a .wsf file that includes a JScript file (fso.js), plus a VBScript function that calls a JScript function (GetFreeSpace) in the included file. The contents of fso.js are also shown.

      WScript.Echo s
   </script>
</job>
 s;

相关文章:

  • 2022-12-23
  • 2021-06-08
  • 2021-10-08
  • 2022-12-23
  • 2021-10-01
  • 2022-02-20
  • 2022-12-23
  • 2021-09-30
猜你喜欢
  • 2022-12-23
  • 2021-11-05
  • 2021-08-08
  • 2022-02-24
  • 2021-12-05
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案