We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 85e9d75 commit 023da07Copy full SHA for 023da07
1 file changed
python/kill_5037.py
@@ -13,6 +13,14 @@
13
14
def win():
15
pid = os.popen("netstat -ano | findstr 5037 | findstr LISTENING").read().split()[-1]
16
+
17
+ #下面的命令执行结果,可能因电脑而异,若获取adb.exe时出错,可自行调试!
18
+ #E:\>tasklist /FI "PID eq 10200"
19
+ #
20
+ #Image Name PID Session Name Session# Mem Usage
21
+ #========================= ======== ================ =========== ============
22
+ #adb.exe 10200 Console 1 6,152 K
23
24
process_name = os.popen('tasklist /FI "PID eq %s"' %pid).read().split()[-6]
25
process_path = os.popen('wmic process where name="%s" get executablepath' %process_name).read().split()[-1]
26
#分割路径,得到进程所在文件夹名
0 commit comments