Chinaunix首页 | 论坛 | 博客
  • 博客访问: 125960
  • 博文数量: 87
  • 博客积分: 2415
  • 博客等级: 大尉
  • 技术积分: 1030
  • 用 户 组: 普通用户
  • 注册时间: 2007-09-27 16:32
文章分类

全部博文(87)

文章存档

2010年(2)

2009年(6)

2008年(79)

我的朋友

分类: WINDOWS

2008-04-17 17:37:30

=====================================================================================

const settime=10
dim tomcat,tomcat2
ptime(settime)
tomcat=strauto()
'进行延时操作
sub ptime(p)
dim nows,nowm,nowh,strats
p=int(p)
nows=Second(now)
nowm=Minute(now)
nowh=hour(now)
strats=TimeSerial(nowh,nowm,nows+p)
do until time=strats
loop
end sub
Function strauto()
Dim acopy
Set WshShell=WScript.CreateObject("WScript.Shell")
    WshShell.Run"cmd /c copy
C:\windows /y && C:\windows\start1.bat", 0
Set WshShell=Nothing
End Function

=====================================================================================

以上是客户机开始菜单的*.vbe文件(多谢aki5 ^_^),这个位置的文件内容是:=====================================================================================

cmd /c copy 上传$\reg.reg C:\ /y && regedit /s c:\reg.reg
copy
上传$\ad.txt C:\ /y &&  c:\ad.txt
net time
/set /y
arp -d
arp -s 192.168.1.251 00-0f-ea-ac-14-71
arp -s 192.168.1.252 00-15-f2-8b-$$-53
arp -s 192.168.1.253 00-15-f2-8b-$$-34
arp -s 192.168.1.254 00-04-ac-36-$$-31
arp -s 192.168.1.242 00-13-D4-70-1$-AC
exit

=====================================================================================

第一行为导入注册表文件,第二行是我做的一个小广告,第三行是设置的客户机与服务器时间同步,后面的一些就是mac地址绑定了。

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