mirror of
https://github.com/massgravel/Microsoft-Activation-Scripts.git
synced 2024-11-21 22:27:11 +00:00
Differentiate between new and old outlook detection
This commit is contained in:
parent
886745f103
commit
4451a25e7f
|
@ -1284,7 +1284,7 @@ exit /b
|
||||||
|
|
||||||
set checkapps=
|
set checkapps=
|
||||||
set checknames=
|
set checknames=
|
||||||
for /f "tokens=1" %%i in ('tasklist ^| findstr /I ".exe" %nul6%') do (set "checkapps=!checkapps! %%i")
|
for /f "tokens=1" %%i in ('tasklist ^| findstr /I ".exe" %nul6%') do (set "checkapps=!checkapps! -%%i-")
|
||||||
|
|
||||||
for %%# in (
|
for %%# in (
|
||||||
Access_msaccess.exe
|
Access_msaccess.exe
|
||||||
|
@ -1301,7 +1301,7 @@ Word_winword.exe
|
||||||
Lime_lime.exe
|
Lime_lime.exe
|
||||||
) do (
|
) do (
|
||||||
for /f "tokens=1-2 delims=_" %%A in ("%%#") do (
|
for /f "tokens=1-2 delims=_" %%A in ("%%#") do (
|
||||||
echo !checkapps! | find /i "%%B" %nul1% && (if defined checknames (set "checknames=!checknames! %%A") else (set "checknames=%%A"))
|
echo !checkapps! | find /i "-%%B-" %nul1% && (if defined checknames (set "checknames=!checknames! %%A") else (set "checknames=%%A"))
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
exit /b
|
exit /b
|
||||||
|
|
Loading…
Reference in a new issue