1

我想像这样在忍者中使用批处理文件作为规则命令

rule test
  command = some-batch-file

但它导致

CreateProcess failed: The system cannot find the file specified.

当我在命令前加上前缀时它可以工作cmd /c,但是我遇到了命令行长度上限为 8191 个左右字符的问题。我发现很难找到有关为什么这不起作用的信息。我的猜测是 windows 真的只能执行.exe带有CreateProcess().

当它直接传递给它时我可以让它工作CreateProcess()还是我必须使用它cmd /c

4

0 回答 0