I am well aware of certutil -encode
, however in my use case I do not want the end user to see a console window open.
问问题
136 次
1 回答
0
You can use vbs to hide the console for the certutil command. create a .vbs
extention file with something like:
Set MyScript = CreateObject("WScript.Shell")
MyScript.Run "cmd /c certutil OPTIONS -encode Infile Outfile", 0, False
Run it as cscript filename.vbs
Alternatively if you have the certutil commands in a batch file, call the batch file instead.
Set MyScript = CreateObject("WScript.Shell")
MyScript.Run "C:\somedir\batchfile.cmd", 0, False
于 2020-02-13T06:23:05.980 回答