本帖最后由 xzrmail 于 2010-7-26 20:05 编辑 Dim $string
$string=IniRead ( "sys.ini", "sys", "connect", "0" )
Select
Case $string=1
run ("d:\001.exe")
IniWrite( "sys.ini", "sys", "connect", "1" )
Case $string=2
run ("d:\002.exe")
IniWrite( "sys.ini", "sys", "connect", "2" )
Case $string=3
run ("d:\003.exe")
IniWrite( "sys.ini", "sys", "connect", "3" )
Case $string=4
run ("d:\004.exe")
IniWrite( "sys.ini", "sys", "connect", "4" )
Case $string=5
run ("d:\005.exe")
IniWrite( "sys.ini", "sys", "connect", "5" )
Case $string=6
run ("d:\006.exe")
IniWrite( "sys.ini", "sys", "connect", "6" )
Case $string=7
run ("d:\007.exe")
IniWrite( "sys.ini", "sys", "connect", "7" )
EndSelect
sys.ini以上代码我想实现定时运行001.exe后,下次运行时自动运行002.exe---003---004............007.exe,运行完007.exe再自动转回来运行001.exe。。就这样循环。
可是我写的这代码不能实现。请高手指点一下是哪里错了?谢谢! |