Board logo

标题: [系统相关] 批处理指定运行程序 PID 或 PID 越来越大 [打印本页]

作者: peterboy666    时间: 2020-11-7 06:38     标题: 批处理指定运行程序 PID 或 PID 越来越大

需求:批处理指定运行程序 PID 或 PID 越来越大
限制:不建立额外文件,可用第 3 方/VBS/PowerShell/JavaScript/....

程序运行会有 PID,
使用 FOR /L %i IN (1,1,10) DO Start Explorer

假如 Explorer 1  的 PID 为 A
假如 Explorer 2  的 PID 为 B
假如 Explorer 3  的 PID 为 C
假如 Explorer 4  的 PID 为 D
假如 Explorer 5  的 PID 为 E
假如 Explorer 6  的 PID 为 F
假如 Explorer 7  的 PID 为 G
假如 Explorer 8  的 PID 为 H
假如 Explorer 9  的 PID 为 I
假如 Explorer 10 的 PID 为 J

如何使 PID J>I>H>G>F>E>D>C>B>A 呢 ?
作者: Batcher    时间: 2020-11-7 16:05

回复 1# peterboy666


    能否介绍一下这样做的目的是什么?
作者: peterboy666    时间: 2020-11-8 00:31

回复 2# Batcher

这是由前帖发想

批处理怎样指定 左上角 (X,Y),建立 N 个 CMD 窗口

如果能限定 PID ,就能排序窗口顺序
请看附图中的数字(图有 50 KB 限制,所以脱色处理)




欢迎光临 批处理之家 (http://bbs.bathome.net/) Powered by Discuz! 7.2