|
楼主 |
发表于 2009-6-26 10:39:36
|
显示全部楼层
用批处理写了个,可是弄了半天最后宣告失败:
@echo off
del WBWallPaper.ini
@echo off & SetLocal EnableDelayedExpansion
for /f "tokens=1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26" %%a in (原始WBWallPaper.ini) do (
set /a flag+=1
if !flag! equ 12 (>>WBWallPaper.ini echo 显示天气=) else (>>WBWallPaper.ini echo %%a %%b %%c %%d %%e %%f %%g %%h %%i %%j %%k %%l %%m %%n %%o %%p %%q %%r %%s %%t %%u %%v %%w %%x %%y %%z)
)
START /min /wait WEATHER.EXE
type WBWallPaper.ini>WBWallPaper.bak
del WBWallPaper.ini
@echo off & SetLocal EnableDelayedExpansion
for /f "tokens=1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26" %%a in (.\WBWallPaper.bak) do (
set /a flag+=1
if !flag! equ 12 (>>.\WBWallPaper.ini echo 显示天气=是) else (>>.\WBWallPaper.ini echo %%a %%b %%c %%d %%e %%f %%g %%h %%i %%j %%k %%l %%m %%n %%o %%p %%q %%r %%s %%t %%u %%v %%w %%x %%y %%z)
)
START /min WEATHER.js
del WBWallPaper.bak |
|