本帖最后由 user3000 于 2011-7-9 03:53 编辑
按你的想法,应该把配置文件写成
”start1=qq.exe|qq1.exe|qq2.exe|MY.EXE"
代码是:$runstr=IniRead("\\192.168.1.219\ini1$\set.ini","IE","start1","0")
$run1=stringsplit($runstr,'|')
FOR $I = 1 TO $RUN1[0]
IF ProcessExists($run1[$I]) THEN
SWITCH $RUN1[$I]
CASE 'QQ.EXE'
RunWait(@ComSpec & " /c " & 'sc config toolstar start= auto', "", @SW_HIDE)
RunWait(@ComSpec & " /c " & 'sc stop toolStar' , "", @SW_HIDE)
RunWait("E:\系统更新\开机命令\SrvToolStar.exe /autorun")
RunWait("E:\系统更新\开机命令\qq.exe")
CASE 'QQ1.EXE'
;...
CASE 'QQ2.EXE'
;...
CASE 'MY.EXE'
;...
ENDSWITCH
ENDIF
NEXT
|