是否有没有在屏幕上显示的 base64 文件编码命令?

Is there a base64 file encoding command that doesn't show up on screen?

我很清楚 certutil -encode,但是在我的用例中,我不希望最终用户看到控制台 window 打开。

您可以使用 vbs 隐藏 certutil 命令的控制台。创建一个 .vbs 扩展文件,内容如下:

Set MyScript    = CreateObject("WScript.Shell")
MyScript.Run "cmd /c certutil OPTIONS -encode Infile Outfile", 0, False

运行 作为 cscript filename.vbs

或者,如果批处理文件中有 certutil 命令,请改为调用批处理文件。

Set MyScript    = CreateObject("WScript.Shell")
MyScript.Run "C:\somedir\batchfile.cmd", 0, False