批处理怎么获取mysqld.exe这个进程的路径并保存到txt中?

2024-11-21 20:31:17
推荐回答(1个)
回答1:

(for /f "tokens=2* delims==" %%a in ('wmic process where "name='mysqld.exe'" get executablepath /value') do echo %%~a)>msqld的路径.txt