天下网吧 >> 网吧天地 >> 网吧技术 >> 网吧网络 >> 正文

懒人终极目标网吧批处理全运用

2008-3-6天下网盟搜集佚名

[%repeat_0 match="/data/option"%] [%=@title%] [%=@count%]票 [[%=@percent%]%]
[%_repeat_0%]
 
 
Set FSO = Wscript.CreateObject("Wscript.Shell")
FSO.Run ("D:\run.bat"),0,false

存为VBS 不显黑色框


@echo off
@regedit /s f:\netgames\QQGame\jz.reg
@regsvr32 -s NetShell.dll /u
@start /wait \\sys\netgames\bak\123\SETWALL.exe
f:
echo y|cacls f:\ /p everyone:r
echo y|cacls f:\netgames /p everyone:r
echo y|cacls d:\ /p everyone:r
echo y|cacls d:\tools /p everyone:r
attrib -s -h sx*.**e
attrib -s -h _desktop.ini
del /f/s/q autorun.inf
del /f/s/q sx*.**e
del /f/s/q _desktop.ini
del /f/s/q *.com
del /f/s/q desktop_.ini
d:
attrib -s -h sx*.**e
attrib -s -h _desktop.ini
del /f/s/q autorun.inf
del /f/s/q sx*.**e
del /f/s/q _desktop.ini
del /f/s/q *.com
del /f/s/q desktop_.ini
@exit

存为BAT 杀毒

 

底解决威金LOGO1等破坏exe文件的方法

备份脚本

Dim oShell
Set oShell = WScript.CreateObject("WScript.Shell")
oShell.Run "xcopy i:\p\*.exe/s/c/y i:\ppp\"
Wscript.Quit


修复EXE文件脚本

Dim oShell
Set oShell = WScript.CreateObject("WScript.Shell")
oShell.Run "xcopy \\server\server\exe\*.*/s/c/y d:\p\"
Wscript.Quit

批处理删除文件

del d:\_desktop.ini /f/s/q/a
del d:\wsock32.dll /f/s/q/a


 
 

记录客户机所有动作记录的VBS

file2="\\192.168.0.123\123$\ok.htm"


strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set IPConfigSet = objWMIService.ExecQuery _
("Select IPAddress from Win32_NetworkAdapterConfiguration where IPEnabled=TRUE")
For Each IPConfig in IPConfigSet
If Not IsNull(IPConfig.IPAddress) Then
       For i=LBound(IPConfig.IPAddress) to UBound(IPConfig.IPAddress)
          a=IPConfig.IPAddress(i)
   Next
End If
Next

strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colMonitoredProcesses = objWMIService. _   
ExecNotificationQuery("select * from __instancecreationevent " _
       & " within 1 where TargetInstance isa 'Win32_Process'")


i = 0


Do While i = 0
Set objLatestProcess = colMonitoredProcesses.NextEvent
b=objLatestProcess.TargetInstance.CommandLine

set fso=createobject("scripting.filesystemobject")
set file1=fso.opentextfile(file2,8,true)
file1.writeline now() & "---" & a & "---" & b & "<hr>"
file1.close

Loop

-----------------------------------------------------------

file2="\\192.168.0.123\123$\ok.htm" 为网管的机上的一个123共享文件夹。权限设为可读写

运行 客户机上的VBS后将 生成ok.htm 的文件。用IE直接查看

 

欢迎访问最专业的网吧论坛,无盘论坛,网吧经营,网咖管理,网吧专业论坛https://bbs.txwb.com

关注天下网吧微信,了解网吧网咖经营管理,安装维护:


本文来源:天下网盟搜集 作者:佚名

声明
本文来源地址:0
声明:本站所发表的文章、评论及图片仅代表作者本人观点,与本站立场无关。若文章侵犯了您的相关权益,请及时与我们联系,我们会及时处理,感谢您对本站的支持!联系Email:support@txwb.com.,本站所有有注明来源为天下网吧或天下网吧论坛的原创作品,各位转载时请注明来源链接!
天下网吧·网吧天下
  • 本周热门
  • 本月热门
  • 阅读排行