ITPub博客

首页 > Linux操作系统 > Linux操作系统 > Running DOS Commands

Running DOS Commands

原创 Linux操作系统 作者:ipqiaojj 时间:2009-03-14 10:49:12 0 删除 编辑

Running DOS Commands

You can run standard DOS commands in your QuickTest function using the VBScript. Windows Scripting Host Shell object (WSCript.shell). For example, you can open a DOS command window, change the path to C:\, and run the DIR command using the following statements:

Dim oShell

Set Shell = CreateObject ("WSCript.shell")

oShell.run "cmd /K CD C:\ & Dir"

Set Shell = Nothing 

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/16792402/viewspace-567253/,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2009-02-22

  • 博文量
    140
  • 访问量
    74859