winpe support + windows webdav stuff

This commit is contained in:
ed 2022-10-19 00:06:48 +02:00
parent f0e98d6e0d
commit 046b494b53
4 changed files with 14 additions and 5 deletions

View file

@ -66,7 +66,11 @@ def meichk():
pids = []
ptn = re.compile(r"^([^\s]+)\s+([0-9]+)")
procs = sp.check_output("tasklist").decode("utf-8", "replace")
try:
procs = sp.check_output("tasklist").decode("utf-8", "replace")
except:
procs = "" # winpe
for ln in procs.splitlines():
m = ptn.match(ln)
if m and filt in m.group(1).lower():