Codoy removes batch processing code with one click

Source: Internet
Author: User

The principle of cool dog advertising can be found on the Internet.
Game. ini
Game. inicfg
Optionv5.ini
Optionv5.inicfg
I am a bit embarrassed, the following operations:
1. Delete these configuration files and create a folder with the same name as the configuration file.
2. Create a CON sub-folder under the folder with the same name as the newly created configuration file. This step ensures that the de-advertising effect does not rebound.
3. Delete the folder named "AD", create a blank file with the same name, and set its document attribute to read-only
==== The advertisement has been deprecated. to visualize the new file or folder, you can set it as a hidden property ====
In order to make it easier for the public, a batch is written in the above steps and tested on the local machine for your use.

The batch processing code is as follows:Copy codeThe Code is as follows: @ echo off

Title codoy music 2010 AD approval By SunTB

Echo. & set kg_pth = C: \ Program Files \ KuGou \ KuGou2010
If exist "% kg_pth % \ KuGoo.exe "(
The valid default path of echo's current cool dog program is % kg_pth %.
Echo. & set/p tmpstr = to change <nul
)
Set/p kg_pth = enter the path of the folder where the cool dog program is located:
If not exist "% kg_pth % \ KuGoo.exe" (the echo. & echo input path is incorrect. Press any key to exit & pause> nul & exit)

: Abort the cool dog program in the current process
Taskkill/f/im KuGoo.exe 1> nul 2> nul

: Handle ads
If exist "% kg_pth % \ AD \" rd/q/s "% kg_pth % \ AD \"
If exist "% kg_pth % \ AD" attrib-s-h-r "% kg_pth % \ AD"
Cd.> "% kg_pth % \ AD"
Attrib + s + h + r "% kg_pth % \ AD"
For % a in (game. ini game. inicfg optionv5.ini optionv5.inicfg) do (
If exist "% kg_pth % \ % a" attrib-s-h-r "% kg_pth % \ %"
If not exist "% kg_pth % \ % \"(
If exist "% kg_pth % \ % a" del/f/q "% kg_pth % \ %"
Md "% kg_pth % \ %"
)
If not exist "% kg_pth % \ % a \ CON"
Cd.> "\. \ % kg_pth % \ % a \ CON"
Attrib + s + h + r "% kg_pth % \ %"
)

: Prepare to exit
Echo. & echo ==== advertised, press any key to automatically start the cool dog and exit ====
Pause> nul
Start "% kg_pth % \ KuGoo.exe"
Exit

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.