[新手上路]批处理新手入门导读[视频教程]批处理基础视频教程[视频教程]VBS基础视频教程[批处理精品]批处理版照片整理器
[批处理精品]纯批处理备份&还原驱动[批处理精品]CMD命令50条不能说的秘密[在线下载]第三方命令行工具[在线帮助]VBScript / JScript 在线参考
返回列表 发帖
2012的老贴了,答案还是贴出来吧,终结此话题
Stack Overflow:https://stackoverflow.com/questi ... ershell-or-vbscript
This gets you close in PowerShell:
  1. get-process | where-object {$_.mainwindowhandle -ne 0} | select-object name, mainwindowtitle
复制代码
Or the shorter version:
  1. gps | ? {$_.mainwindowhandle -ne 0} | select name, mainwindowtitle
复制代码
#&cls&@powershell "Invoke-Expression ([Io.File]::ReadAllText('%~0',[Text.Encoding]::UTF8))" &pause&exit

TOP

返回列表