


CODE: [Copy to clipboard]wmic process where name='qq.exe' get ExecutablePath
CODE: [Copy to clipboard]@echo off
for /f "tokens=2 delims==" %%a in ('wmic process where "name='qq.exe'" get * /value^|findstr /i "executablepath"') do set "pth=%%~dpa"
echo %pth%
pause>nul
| Quote: | |
|
CODE: [Copy to clipboard]set /p process=请输入:
for /f "skip=1 delims=" %%a in ('wmic process where "name='%process%'" get ExecutablePath') do set "propath=%%~dpa"
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |