Cool dog Go ad One-click to remove batch code _dos/bat

Source: Internet
Author: User
Cool dog to the principle of advertising you can find online, are the same, is the following several configuration files
Game.ini
Game.inicfg
Optionv5.ini
Optionv5.inicfg
I was a bit tough, the following operations:
1, directly to delete these several configuration files, and then create a folder with the same name as the configuration file
2, and then create a new profile folder under the same name of the Con subfolder, this step to ensure that the ad effect does not rebound
3. Delete the folder named "AD", create a blank file with the same name, and set its document property to read-only
= = = have gone to advertising, to visually refreshing, you can set the above new file or folder as hidden properties = =
In order to facilitate the public, according to the above steps to write a batch, on this machine test pass, for everyone to use

The batch code is as follows:
Copy Code code as follows:

@echo off

Title Cool Dog Music 2010 go to AD batch processing by SUNTB

Echo.&set Kg_pth=c:\program files\kugou\kugou2010
If exist "%kg_pth%\kugoo.exe" (
echo Current Cool Dog program folder valid default path is:%kg_pth%
echo.&set/p tmpstr= to change <nul
)
set/p kg_pth= Please enter the folder path for the Cool dog program:
If not exist "%kg_pth%\kugoo.exe" (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

:: To deal with advertising
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%\%%a"
If not exist "%kg_pth%\%%a\" (
If exist "%kg_pth%\%%a" del/f/q "%kg_pth%\%%a"
MD "%kg_pth%\%%a"
)
If not exist "%kg_pth%\%%a\con"
Cd.> "\\.\%kg_pth%\%%a\con"
attrib +s +h +r "%kg_pth%\%%a"
)

:: Ready to exit
Echo.&echo = = have gone to advertising, press any key will automatically start cool dog after exit = =
Pause>nul
Start ""%kg_pth%\kugoo.exe "
Exit

Related Article

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.