Chinaunix首页 | 论坛 | 博客
  • 博客访问: 370571
  • 博文数量: 110
  • 博客积分: 4642
  • 博客等级: 准将
  • 技术积分: 1404
  • 用 户 组: 普通用户
  • 注册时间: 2005-03-10 10:15
文章分类

全部博文(110)

文章存档

2012年(17)

2011年(22)

2010年(49)

2009年(20)

2008年(2)

分类:

2009-12-22 22:03:47

 

Dim oShell, oExec, sLine
Set oShell = CreateObject("WScript.Shell")
Dim acmd :acmd="%COMSPEC% /c "
Dim a :a="dir"
Dim b :b=" c:"
Dim strp :strp=a&b&"\"
Set oExec = oShell.Exec(acmd&strp)
'Set oExec = oShell.Exec("
%COMSPEC% /c cacls D:\")
Set oSTDOUT=oExec.StdOut
str_out=oSTDOUT.Readline
wscript.echo str_out

'Do While oExec.Status = 1
' WScript.Sleep 50
'Loop
'Do Until oExec.StdOut.AtEndOfStream
' sLine = oExec.StdOut.ReadLine
' If InStr(LCase(sLine), "
domain admins") > 0 Then
' WScript.Echo "
Admins be heer, Arr!"
'Else
'WScript.Echo "
No Admins


阅读(935) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~