WCAT 给出错误:“必须至少指定以下参数之一 -run、-update、-terminate、-showclients 或 -setclients”

发布于 2024-09-15 14:00:57 字数 300 浏览 4 评论 0原文

当通过命令行在我的 Windows XP 计算机上运行 WCAT 时,出现以下错误:

错误:必须至少指定以下一项 以下参数-运行, -更新、-终止、-showclients 或 -setclients

我尝试运行的命令是:

wcat.wsf -terminate -run  -t scenario.wcat -f settings.ubr -s localhost -singleip -x

并且直接从自述文件中复制。

When running WCAT on my windows XP machine via the commandline I get the following error:

error: must specify at least one of
the following parameters -run,
-update, -terminate, -showclients or -setclients

The command I try to run is:

wcat.wsf -terminate -run  -t scenario.wcat -f settings.ubr -s localhost -singleip -x

And is copied directly from the readme.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

少女的英雄梦 2024-09-22 14:00:57

问题是在自述文件中,它并不是真正的连字符。

如果您查看十六进制代码,您会发现自述文件中的假连字符是 0x96,连字符是 0x2d,

因此请继续将行中的所有连字符替换为真实的连字符。之后它就会起作用。

The problem is that in the readme, it's not really a hyphens.

If you look at the hex code, you see that the fake hyphen in the readme is 0x96, a hyphen is 0x2d

So go ahead and replace all the hyphens in the line with real ones. It will work after that.

把人绕傻吧 2024-09-22 14:00:57

该问题的存在是由于 wcat.wsf 文件中的正则表达式匹配错误。由于某种原因,正则表达式:

 var run_regular_expression = /[-\/]run$/;

将与“-run”参数不匹配

将其更改为:

 var run_regular_expression = /[\-\/]run$/;

与运行参数匹配。

另一种选择是更改为命令行调用:

wcat.wsf /terminate /run  -t scenario.wcat -f settings.ubr -s localhost -singleip -x

使用斜杠而不是连字符

The problem exists because of an error in the regex matching in the wcat.wsf file. For some reason the regex:

 var run_regular_expression = /[-\/]run$/;

Will not match the "-run" argument

Changing it to:

 var run_regular_expression = /[\-\/]run$/;

Does match the run argument.

Another option is to change to commandline call to:

wcat.wsf /terminate /run  -t scenario.wcat -f settings.ubr -s localhost -singleip -x

using slashes instead of hyphens

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文