Get the App
SLTechnology News&Howtos  ›  Development  › 

How to self-control the process and control the batch processing of boot startup items

Shulou Source: shulou.com Published: 2022-06-03 08:20:15 10月04日 Update

This article mainly shows you "how to self-control the process and control the batch processing of boot startup items". The content is easy to understand and clear, hoping to help you solve your doubts. Let the editor lead you to study and learn the article "how to self-control the process and control the batch processing of boot startup items".

Auto end forced intelligent end .vbs

Vbs is mainly used to run bat, passing parameters.

The code is as follows:

Set wshshell=createobject ("wscript.shell")

Wshshell.run "targeted process Management .bat"

Wscript.sleep 2000

For Xero1 to 30

Wscript.sleep 1000

Wshshell.sendkeys "{enter 3}"

Next

Targeted process management .bat

The code is as follows:

@ echo off&setlocal enabledelayedexpansion

Ping-n 3 127.0 > nul

If exist tem.txt del / f / q tem.txt

Echo. The selection process is in progress.

Echo > > tem.txt explorer.exe

Echo > > tem.txt System Idle Process

Echo > > tem.txt System

Echo > > tem.txt smss.exe

Echo > > tem.txt csrss.exe

Echo > > tem.txt winlogon.exe

Echo > > tem.txt services.exe

Echo > > tem.txt TheWorld.exe

Echo > > tem.txt lsass.exe

Echo > > tem.txt svchost.exe

Echo > > tem.txt spoolsv.exe

Echo > > tem.txt alg.exe

Echo > > tem.txt ctfmon.exe

Echo > > tem.txt ekrn.exe

Echo > > tem.txt wdfmgr.exe

Echo > > tem.txt 360tray.exe

Echo > > tem.txt egui.exe

Echo > > tem.txt wmiprvse.exe

Echo > > tem.txt QQ.exe

Echo > > tem.txt cmd.exe

Echo > > tem.txt IEXPLORE.EXE

Echo > > tem.txt TXPlatform.exe

Echo > > tem.txt tasklist.exe

Echo > > tem.txt conime.exe

Echo > > tem.txt safeboxTray.exe

Echo > > tem.txt wscript.exe

For / f "eol= tokens=1,2 delims=,"% I in ('tasklist / nh / fo csv') do (

Findstr / I / x I tem.txt > nul

If errorlevel 1 (

Echo =

Echo =

Echo I is located in the following path

Wmic process where processid=%%j get executablepath | findstr / v / I "executablepath"

Ntsd-c Q-p% j 1 > nul 2 > nul

Ping-n 1 127.0 > nul

Tasklist | findstr / I% I > nul

If errorlevel 1 (

Echo I has ended completely successfully

) else (

Echo% I did not finish completely, probably a rogue program

)

)

)

The task of del tem.txt & echo ending process is basically completed.

Taskkill / f / im wscript.exe

Mshta _ vbscript:msgbox ("my job is done! please see details", "brushing process") (window.close)

Taskkill / f / im cmd.exe

The above is all the contents of the article "how to self-control the process and control the batch of startup items". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Tags: Process control content articles code tasks targeting learning help management success information understandability intelligence more organization hooligans goals knowledge Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Docker OPPO Reno Huawei Xiaomi Apple