rem storm.bat
rem composed by ranpanf
rem 2010-4-20
@echo off
:begin
echo Please select driver(C:/ D:/ E:/ F:/) on which stormII has been installed:
echo (C) C:/
echo (D) D:/
echo (E) E:/
echo (F) F:/
echo CASE-INSENSITIVE!!
echo Press CTRL+C to cansel executing storm.bat
set /p select=INPUT:
for %%i in (C c D d E e F f ) do (
if "%select%"=="%%i" (
set driver="%%i:/"
goto good
)
)
echo Error: Invalid params !
goto begin
:good
echo Good! you has select %driver%.
for /r "%driver%/program files/StormII/media" %%i in (video_style_list.xml) do (
if exist "%%i" (
echo %%i is founded ! Haha!
attrib -H -R "%%i"
echo modifying %%i...
del "%%i"
cd. >"%%i"
attrib +H +R "%%i"
echo modified %%i [done]!
goto next
)
)
echo Warning: vidieo_style_list.xml has been found!
echo Failure!
pause
exit
:next
for /r "%driver%/program files/StormII/media" %%i in (stcon.ini) do (
if exist "%%i" (
echo %%i is founded ! Haha!
attrib -H -R "%%i"
echo modifying %%i...
del "%%i"
cd. >"%%i"
attrib +H +R "%%i"
echo modified %%i [done]!
goto end
)
)
echo Warning: stcon.ini has been found!
echo Failure!
pause
exit
:end
echo change the attributes of StormII's configuration files to Read Only!
attrib -r -h /s /d "C:/Documents and Settings/All Users/Application Data/Storm"
echo Succeed in changing the attributes
echo Congratulations! you make it!
pause
exit