【发布时间】:2021-07-22 11:53:17
【问题描述】:
在 Windows 10 中,当 PC 连接到特定设备(如扩展坞)时,是否可以自动运行 cmd/powershell 命令? (就像连接特定设备触发命令一样)
我想做这样的事情-
If [device1 connected] -> Run Command A
If [device1 disconnected] -> Run Command B
If [device2 connected] -> Run Command C
...
【问题讨论】:
标签: windows powershell batch-file cmd windows-10