0
点赞
收藏
分享

微信扫一扫

[AHK]创建WScript.Shell对象执行DOS命令行并获取返回值


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




举报

相关推荐

0 条评论