Commander 当前离线
一级士官
@echo off type nul >2.txt for /f "tokens=1-2 delims==" %%a in ('wmic process get Caption^,ExecutablePath /value') do ( if "%%a" equ "Caption" ( >>2.txt set /p =%%b <nul ) else if "%%a" equ "ExecutablePath" ( >>2.txt echo,%%b ) )复制代码
TOP