windows script debuger

如果获得Script Debugger:

      如果您购买了 Windows 2000,则您已经 Script Debugger 了;它作为安装选件包含在 Windows CD 中。Windows XP 或 Windows Server 2003 不提供该调试器,但您可以下载适用于这两种操作系统的版本以及适用于 Windows 98、Windows ME 和 Windows NT 4.0 的版本。

 

适用于 Windows NT 4.0、2000 和 XP 的 Microsoft Windows Script Debugger
(http://www.microsoft.com/downloads/details.aspx?FamilyID=2f465be0-94fd-4569-b3c4-dffdf19ccd99&DisplayLang=en)。

适用于 Windows 98 和 Windows Me 的 Microsoft Windows Script Debugger
(http://www.microsoft.com/downloads/details.aspx?displaylang=zh-cn&FamilyID=e606e71f-ba7f-471e-a57d-f2216d81ec3d)。

这个是中文的。文件名称:       dbg10chs.exe
文件大小:       661.56KB
文件类型:       应用程序
完成进度:       100%
http://download.microsoft.com/download/winscript56/Install/1.0/W9XMe/CN/dbg10chs.exe
Script Debugger 的启动方式:
   不要通过shell 单击正常启动,如果这样使用,会发现所有的菜单项都是不可用。 而应该通过类似命令:  cscript my_script.vbs //x  。这是因为脚本调试器开始是为了调试html和asp使用的。 不过它同时也可以调试单独的vbscript和jscript文件。
Script Debuger  只能使用一次:
    每次执行完毕,要想重新执行脚本,必须重新加载一遍脚本。
Script Debugger  中命令窗口的使用
    1,可以观察变量的值:  输入类似内容:? val  则在下一行显示出来接过
    2,可以在执行期间修改变量的值。 牢牢记住一点,这是解释型语言。 不会进行扫描以及预编译等工作。 所以如果你发现运行到某行的时候缺少一行代码,可以直接把这行代码输入到命令窗口中进行运行。一样可以获得预期的结果
    3,命令窗口中一行可以输入多行代码, 用冒号分割。 
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
System Administration Scripting Guide Script Repository Version 1.0, May 2002 The scripts included in this help file are likely to appear in the forthcoming System Administration Scripting Guide, which will ship as part of the Windows .NET Server Resource Kit. In the Scripting Guide itself, each script will be explained in step-by-step fashion, and instructional material will help you learn how to modify these scripts to suit your unique individual needs. In addition, the book will also teach you how to write your own scripts using VBScript, WMI, ADSI, and other Microsoft Scripting technologies. Most of the scripts are designed to run with either Windows 2000, Windows XP, or Windows .NET Server. Scripts that are not designed to run on all these platforms include a brief note indicating which versions of Windows are required. To use the scripts, copy the appropriate script code, paste it into Notepad or another text editor, and save the file with a .vbs file extension. For more information about these scripts or about the book, contact the Scripting Guide team at scripter@microsoft.com A Note About the WMI Scripts Most of the WMI scripts in this repository create a variable named strComputer, and then set the value of that variable to "." Thus, the scripts generally include this line: strComputer = "." This causes the script to run against the local computer. This is due to the way that the script has been composed, and the fact that WMI views a computer named "." as being the local computer. If you want to run the script against a remote computer, simply replace the "." with the name of the remote computer, surrounded by double quotation marks. For example, this line of code runs the script against a remote computer named PrintServer1: strComputer = "PrintServer1" This is the only change you need to make in order to run the WMI scripts against a remote computer. Bear in mind, however, that you will need to have administrative rights on the remote computer in order for the script to succeed. In addition, WMI must be installed both on the local computer and on the remote computer.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值