Start and Stop a batch file. bat

Source: Internet
Author: User

Copy the following content to notepad and modify the extension of notepad to. bat.

@ Echo off
Rem echo (Remarks: automatic: auto Manual start: Demand disabled: Disabled)

SC config knbcenter start = disabled
SC config pptvservice start = disabled
SC config 360rp start = disabled
SC config bfassistantsvc start = disabled
(Net stop knbcenter) & (net stop pptvservice) & (net stop 360rp) & (net stop bfassistantsvc)
Echo Disabled Services: cheetah browser security center, pptvservice, 360rp, bfassistantsvc ..

Echo:
Echo.
Echo 0 all
Echo 1 cheetah browser security center
Echo 2 pptvservice
Echo 3 360 real-time anti-virus protection
Echo 4 bfassistantsvc
Echo.
Set/P Var = select the service serial number to enable:
If % var % = 0 (Net start knbcenter) & (Net start pptvservice) & (Net start 360rp) & (Net start bfassistantsvc)
If % var % = 1 Net start knbcenter
If % var % = 2 Net start pptvservice
If % var % = 3 Net start 360rp
If % var % = 4 Net start bfassistantsvc

Pause

 

 

 

 

 

In addition, a bat file for cleanup of junk files is provided to clean up junk files in the computer. BAT (same as above)

@ echo off
ECHO is clearing the System junk file. Please wait ......
Del/f/S/Q % systemdrive % \*. TMP
Del/f/S/Q % systemdrive % \*. _ mp
Del/f/S/Q % systemdrive % \*. log
Del/f/S/Q % systemdrive % \*. GID
Del/f/S/Q % systemdrive % \*. chk
Del/f/S/Q % systemdrive % \*. old
Del/f/S/Q % systemdrive % \ recycled \*. *
Del/f/S/Q % WinDir % \*. bak
Del/f/S/Q % WinDir % \ prefetch \*. *
RD/S/Q % WINDIR % \ Temp & MD % WINDIR % \ Temp
Del/f/Q % USERPROFILE % \ cookies \*. *
Del/f/Q % USERPROFILE % \ recent \*. *
Del/f/S/Q "% USERPROFILE % \ Local Settings \ Temporary Internet Files \*. * "
Del/f/S/Q" % USERPROFILE % \ Local Settings \ temp \*. * "
Del/f/S/Q" % USERPROFILE % \ recent \*. * "
echo cleared the system spam file!
echo. & pause

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.