Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我们的所有者有一个批处理文件来访问任何人计算机上的 C: 驱动器,有没有办法让用户检测到批处理文件正在运行并且他们的 C: 驱动器当前正在被另一个用户访问?我想涵盖所有基础,不幸的是我不知道这个问题的答案。
如果您知道计算机中运行的子进程的名称,请在 cmd 提示符下使用以下命令。
tasklist /FI "IMAGENAME eq processname.exe" 2>NUL