windows系统下通过cmd命令查找某个进程的运行路径
2018-02-02 08:40
579 查看
我们常常需要知道运行的进程在哪个目录下。使用wmic非常方便,能够知道进程的详细信息。
例如:任务管理器中显示的进程名为c.exe.
查找路径方法是:打开cmd.exe,输入wmic ,然后输入process where(Description="c.exe")
wmic 作用总结:
一、查询数据
1 使用get查询
wmic process get name,executablepath
2 无条件查询
wmic process list brief
wmic process list full
3加where条件查询
wmic process where name="qq.exe" get processid,executablepath,name
会显示所有的同名进程,注意where条件在前面,要获取的属性在后面。
二、创建进程
wmic process call create "c:\windows\system32\cmd.exe"
三、结束进程
wmic process where name="qq.exe" call terminate
wmic process where name="qq.exe" delete
转载自:http://blog.csdn.net/cfanzp/article/details/8825130
例如:任务管理器中显示的进程名为c.exe.
查找路径方法是:打开cmd.exe,输入wmic ,然后输入process where(Description="c.exe")
wmic 作用总结:
一、查询数据
1 使用get查询
wmic process get name,executablepath
2 无条件查询
wmic process list brief
wmic process list full
3加where条件查询
wmic process where name="qq.exe" get processid,executablepath,name
会显示所有的同名进程,注意where条件在前面,要获取的属性在后面。
二、创建进程
wmic process call create "c:\windows\system32\cmd.exe"
三、结束进程
wmic process where name="qq.exe" call terminate
wmic process where name="qq.exe" delete
转载自:http://blog.csdn.net/cfanzp/article/details/8825130
相关文章推荐
- 通过命令查看系统正在运行的进程及路径
- windows 下通过端口号查找对应进程ID及其路径
- 通过CreateToolhelp32Snapshot函数获得系统中当前运行的进程信息2
- WINDOWS黑客基础(4):查找进程运行的基址
- oracle 在windows系统中通过spid查找执行的sql
- Windows 通过以下参数找到端口的上运行的服务进程。
- linux通过端口号(进程号pid)查找程序执行路径
- 通过WMI列出Windows系统进程(VB.net)
- windows下通过services.msc命令把某些服务停止引起系统运行异常的事宜
- Windows学习总结(12)——Windows 10系统开始运行-cmd命令大全
- 不通过其它工具,通过系统自带工具查找占用端口的进程
- 如何通过进程名字关闭系统正在运行的进程
- 不在系统变量中设定path/classpath,运行任意路径下的class文件(通过.bat文件)
- Windows学习总结(12)——Windows 10系统开始运行-cmd命令大全
- windows系统中通过 运行(win+R) 的方式打开电脑程序或文件夹
- windows下DOS命令查找占用的端口,并通过端口寻找占用端口的进程
- windows系统上通过adb查看android机器运行日志
- 获取Windows系统的进程运行信息
- 通过CreateToolhelp32Snapshot函数获得系统中当前运行的进程信息
- Windows中通过命令行显示进程启动路径