Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

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

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

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!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report