wShell := ComObjCreate( "WScript.Shell" )
exec := wShell.Exec("ipconfig /all")
MsgBox % exec.StdOut.ReadAll
利用剪贴板,es为es.exe,和脚本放到同一目录,可以简写为es
es.exe 文件
https://www.voidtools.com/es.zip
keyword:="通信"
cmd=es %keyword%
Runwait, %ComSpec% /c %cmd% | clip,,hide