Skip to content

Commit 023da07

Browse files
committed
add note
1 parent 85e9d75 commit 023da07

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

python/kill_5037.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,14 @@
1313

1414
def win():
1515
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+
1624
process_name = os.popen('tasklist /FI "PID eq %s"' %pid).read().split()[-6]
1725
process_path = os.popen('wmic process where name="%s" get executablepath' %process_name).read().split()[-1]
1826
#分割路径,得到进程所在文件夹名

0 commit comments

Comments
 (0)