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
本文介绍了一个名为storm.bat的批处理脚本,该脚本能修改安装在不同驱动器上的Storm II软件配置文件的属性,并对特定文件进行读写权限的更改。通过用户交互选择安装路径后,脚本会寻找video_style_list.xml和stcon.ini这两个文件,对其进行修改并恢复隐藏及只读属性。
4658

被折叠的 条评论
为什么被折叠?



