随笔 - 49  文章 - 0 评论 - 19 
<2007年9月>
2627282930311
2345678
9101112131415
16171819202122
23242526272829
30123456

Web Site Traffic Counter

常用链接

留言簿(3)

随笔分类(48)

随笔档案(49)

搜索

  •  

积分与排名

  • 积分 - 61018
  • 排名 - 99

最新评论

阅读排行榜

评论排行榜

#include "file.au3"
#include "process.au3"
MsgBox(0,"boottime","上次系统启动时间:"&boottime())

Func boottime()
        $tempfile = _TempFile(@TempDir, "~", '.txt')
        _RunDOS('net statistics workstation |find "统计数据开始于" >' & $tempfile)
        $stime = FileRead($tempfile)
        $stime = StringReplace($stime, "统计数据开始于 ", "")
        If @error Then Return "err"
        FileDelete($tempfile)
        Return $stime
EndFunc   ;==>boottime

posted on 2007-09-29 08:34 疾风随影 阅读(1094) 评论(0)  编辑 收藏 引用 所属分类: Script & Batch column
只有注册用户登录后才能发表评论。