我有一个创建符号链接的 VBScript 应用程序。
Set wshell = CreateObject("WScript.Shell")
.....
linkcmd = "mklink /D """ & linkFolderPath & "\" & linkName & """ """ & libfolder & "\" & folderName & """"
cmd = "cmd /C " & linkcmd
wshell.Run cmd, 4, true
这很好并且有效,但是当我创建大量链接时,每次执行wshell.Run
命令都会导致出现一个短暂的控制台窗口并立即消失。
有没有办法阻止控制台窗口被如此明显地创建?