【发布时间】:2018-06-13 12:45:09
【问题描述】:
我为我的任务栏创建了文件夹快捷方式,我希望它们不再每次都启动新的资源管理器
所以我决定创建一个批处理脚本,但是我无法从 explorer.exe 获取孩子
@echo off
pushd
tasklist /nh /fi "imagename eq explorer.exe C:\Users\danil\Desktop\ISO" | find /i "explorer.exe C:\Users\danil\Desktop\ISO" > nul ||(start explorer.exe C:\Users\danil\Desktop\ISO)
【问题讨论】:
-
对您的映像名称如何等于 explorer.exe C:\Users\danil\Desktop\ISO 感到困惑。
-
explorer.exe 窗口不是单独的进程,因此您将无法使用任务列表列出它们。
-
你想对所有你想列出的窗口做什么?如果“文件夹”还没有打开,你想启动它吗?
标签: windows batch-file directory explorer