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