我很清楚certutil -encode
,但是在我的用例中,我不希望最终用户看到控制台窗口打开。
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
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.