Local $test_PC = "PC1" Local $log = "c:\logonuser.txt" Local $cmd = "c:\psloggedon.exe \" & $test_PC & " >" & $log RunWait(@ComSpec & " /c " & $cmd,"", @SW_HIDE) Local $file = FileOpen($log,0) $logonuserinfo = FileReadline($file,8) $logonuser = StringSplit($logonuserinfo, ' ') MsgBox("","",$logonuserinfo) MsgBox("","",$logonuser[11]) FileClose($file) fileDelete($log)
举报
本版积分规则 发表回复 回帖后跳转到最后一页
|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度
GMT+8, 2024-11-19 03:44 , Processed in 0.062577 second(s), 13 queries .
Powered by Discuz! X3.5 Licensed
© 2001-2024 Discuz! Team.