Windows 脚本简述

Windows 脚本构架

    一般为 .js,.vbs 等文件

     由相应的脚本宿主/引擎执行

     一般是基于对象的,调用数量众多的脚本引擎及脚本对象模型中的功能

 

Windows 脚本宿主

    IISweb服务器端脚本:INETINFO.exe

    IE: web客户端脚本:IEXPLORE.exe

    WSH 脚本(Windows Script Host) WScript.exe/CScript.exe 

Windows 脚本引擎

    Windows 内置的脚本引擎:JScript  VBScript

    第三方脚本引擎:PerlScript  Python

Windows 脚本对象模型

       一组实现了相关功能的对象的集合

    WSHWMIADSIADOCDO 等等

What Is the Windows Scripting Host?

The Windows scripting host is a language independent environment that exists on Windows based machines. It gives us the ability to write administrative scripts in various scripting languages. By default, Windows ships with a development environment for both VBScript and JScript, but you can install other runtime engines if you wish.

Once a runtime engine is installed, the Windows scripting host will choose the appropriate engine for the script that is attempted to run. For VBScript, there are two script hosts: Cscript.exe and Wscript.exe. Cscript.exe provides command line switches that enable you to supply arguments to modify the way your script runs. Wscript.exe is the default scripting host and provides Windows based dialog boxes.

自己编写了一个脚本文件,如后缀为 .vbs .js 的文件,然后在 Windows

双击并执行它,这时,系统就会自动调用一个适当的程序来对它进行解释并执行,而这个程序,就是 Windows Scripting Host,程序执行文件名为 Wscript.exe (若是在命令行下,则为 Cscript.exe

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值