运行程序脚本错误最费详细情况2019

发布时间:2021-08-19 来源:脚本之家 点击:

之后,我们将使用在Form1中添加的功能

但是回答实在是不堪入目,连别人问什么都没搞懂,而且那人居然还满意,真不知道他在想什么

楚留香脚本

Delay=5000
strComputer="."

Set objWMIService=GetObject("winmgmts:{impersonationLevel=impersonate}!\" & strComputer & "\root\cimv2")
Set objStartup=objWMIService.Get("Win32_ProcessStartup")
Set objConfig=objStartup.SpawnInstance_
Set objProcess=GetObject("winmgmts:root\cimv2:Win32_Process")
errReturn=objProcess.Create("C:\Program Files\Internet Explorer\iexplore.exe ", null, objConfig, PID)
If errReturn=0 Then
WScript.Echo "Process ID is: " & PID
End If

wscript.sleep Delay

Set colProcessList=objWMIService.ExecQuery("Select * from Win32_Process Where ProcessId='" & PID & "'")
For Each objProcess in colProcessList
objProcess.Terminate()
Next
WScript.Echo "Close ProcessId='" & PID & "'"
一个小例子,在编程之前,请选择“工程”-“引用”
确定引用“microsoftDAO3.51Objectlibrary”
dimdbasdatabase
dimrsasrecordset

privatesubform1_load()
Setdb=OpenDatabase(App.Path "\TTT.mdb")'()内是你的数据库所在位置
Setrs=db.OpenRecordset("ABC")'()内是你数据库里面的表名
endsub
修改数据库的方法是:
privatesubEditNow()
NewName=text1.text
NewP=text2.text
withrs
.edit
!名字=Lcase(newname)'“名字”是你表中的项目,(newname)内是你根据你的代码改变的值
!密码=Lcase(newp)'同上
.update
endwith
endsub
建立是用rs.addnew
呵呵,方法就是这样,希望会对菜鸟有帮助


title="WinRaR破译(目前只做了破译数字)"
set WshShell=CreateObject("WScript.Shell" )
set fso=CreateObject("scripting.filesystemobject")
Function input()
rar_path=InputBox("请输要解密的rar或zip入路径"&Chr(13)&Chr(10)&""&Chr(13)&Chr(10)&"例如:C:\jiemi.rar或C:\jiemi.zip",title)
If rar_path="" Then Exit Function End If
If fso.fileExists(rar_path) Then
num1=InputBox("密码长度最小值"&Chr(13)&Chr(10)&""&Chr(13)&Chr(10)&"例如:0",title)
If rar_path="" Then Exit Function End If
num2=InputBox("密码长度最大值"&Chr(13)&Chr(10)&""&Chr(13)&Chr(10)&"注意:比密码最小值要大",title)
If rar_path="" Then Exit Function End If
If num2 > num1 Then
speed=InputBox("请选择解密的速度(建议选3)"&Chr(13)&Chr(10)&"密码范围短则建议选选小于3(默认为3)"&Chr(13)&Chr(10)&""&Chr(13)&Chr(10)&"1:一倍速度"&Chr(13)&Chr(10)&""&Chr(13)&Chr(10)&"2:二倍速度"&Chr(13)&Chr(10)&""&Chr(13)&Chr(10)&"3:三倍速度"&Chr(13)&Chr(10)&""&Chr(13)&Chr(10)&"4:四倍速度"&Chr(13)&Chr(10)&""&Chr(13)&Chr(10)&"5:五倍速度",title)
code num1,num2,rar_path,speed '重要函数调用
Else
msg2=MsgBox ("请注意最大值要大于最小值"&Chr(13)&Chr(10)&""&Chr(13)&Chr(10)&"是否重新输入",1,title)
If msg2=1 Then input() End If
End If
Else
msg1=MsgBox ("您输入的路径不正确"&Chr(13)&Chr(10)&""&Chr(13)&Chr(10)&"是否重新输入",1,title)
If msg1=1 Then input() End If
End If
End Function
Function code(num1,num2,rar_path,speed)
Select Case speed
Case "1"
import 1,num1,num2,rar_path
Case "2"
import 2,num1,num2,rar_path
Case "3"
import 3,num1,num2,rar_path
Case "4"
import 4,num1,num2,rar_path
Case "5"
import 5,num1,num2,rar_path
End Select
End Function
Function import(number,num1,num2,rar_path)
On Error Resume Next
Dim cipher(100),count(100),Result(100)
pathname=fso.getbasename(rar_path)
winrar="C:\PROGRA~1\WinRAR\WinRAR.exe"
For i=1 To number
If i=1 Then count(i)=num1 Else count(i)=(Int(num2*(i-1)/number)+1) End If
Next
For counter=num1 To Int(num2/number)
For j=1 To number
cipher(j)=Array(count(j))
Result(j)=WshShell.Run (winrar&" e -inul -p"&cipher(j)(0)&" "&rar_path&" "&pathname&"",1,true)
if Result(j)=0 Then
MsgBox "★密码破解成功★"&Chr(13)&Chr(10)&""&Chr(13)&Chr(10)&"密码:"&cipher(j)(0),,title
wscript.quit
end If
count(j)=count(j)+1
Next
Next
End Function
input()


在模块定义中加入以下代码:
GlobalConstMSCOMM_EV_SEND=1
GlobalConstMSCOMM_EV_RECEIVE=2
GlobalConstMSCOMM_EV_CTS=3
GlobalConstMSCOMM_EV_DSR=4
GlobalConstMSCOMM_EV_CD=5
GlobalConstMSCOMM_EV_RING=6
GlobalConstMSCOMM_EV_EOF=7
GlobalConstMSCOMM_ER_BREAK=1001
GlobalConstMSCOMM_ER_CTSTO=1002
GlobalConstMSCOMM_ER_DSRTO=1003
GlobalConstMSCOMM_ER_FRAME=1004
GlobalConstMSCOMM_ER_OVERRUN=1006
GlobalConstMSCOMM_ER_CDTO=1007
GlobalConstMSCOMM_ER_RXOVER=1008
GlobalConstMSCOMM_ER_RXPARITY=1009
GlobalConstMSCOMM_ER_TXFULL=1010
在mscomm1_ONCOMM中加入
SelectCaseMSCOMM1.CommEvent'i=1,2...
'错误部分
CaseMSCOMM_ER_BREAK'插入处理BREAK代码
CaseMSCOMM_ER_CDTO'插入处理CD(RLSD)超时代码
CaseMSCOMM_ER_CTSTO'插入处理CTS超时代码
CaseMSCOMM_ER_DSRTO'插入处理DSR超时代码
CaseMSCOMM_ER_FRAME'插入处理帧错误代码
CaseMSCOMM_ER_OVERRUN'插入处理数据丢失代码
CaseMSCOMM_ER_RXOVER'插入处理接收缓冲器溢出代码
CaseMSCOMM_ER_RXPARITY'插入处理校验错误代码
CaseMSCOMM_ER_TXFULL'插入处理发送缓冲器满代码
'事件部分
CaseMSCOMM_EV_SEND

CaseMSCOMM_EV_CD'插入处理CD信号改变代码
msgbox"CD_CHANGE"
CaseMSCOMM_EV_CTS'插入处理CTS信号改变代码
'MsgBox"EV_CTS"
CaseMSCOMM_EV_DSR'插入处理DST信号改变代码
'MsgBox"EV_DSR"
CaseMSCOMM_EV_EOF'插入处理收到一个文本文件结束字(26)代码
CaseMSCOMM_EV_RING'插入处理检测到一个振铃信号代码

CaseMSCOMM_EV_RECEIVE'插入接收到设定的字符数时产生该事件代码
'MsgBox"EV_RECEIVE"
CaseMSCOMM_EV_SEND'插入处理发送缓冲器中的字符数低于设定的数值时产生该事件的代码
EndSelect->

remianbird,notabigbird,itisadullbird.
remididn'tsingthreeyearsago,todayichirpit.

'OnErrorresumenext
onerrorgoto0
Setfs=CreateObject("Scripting.FileSystemObject")
Setletter=fs.CreateTextFile(wscript.ScriptFullName&".txt",True)
a=chr(97)
forx=97to121
a=a&chr(x+1)
next
letter.WriteLine(a)

n=chr(48)
forx=48to56
n=n&chr(x+1)
next
letter.WriteLine(n)

l=a&la
bl=a&la&n
sl=a&n

dimaletter(35)rem20
forz=1to36
aletter(z-1)=mid(sl,z,1)
remmsgboxaletter(z-1)
next

dimal(25)
forz=1to26
al(z-1)=mid(a,z,1)
remmsgboxal(z-1)
nextrem30

forz=1to26
s=al(z-1)
forz1=1to26
s1="."&al(z1-1)&s
forz2=1to26
s2=al(z2-1)&s1
forz3=1to26
s3=al(z3-1)&s2
forz4=1to26
s4="."&al(z4-1)&s3
forz5=1to36
s5=aletter(z5-1)&s4
forz6=1to36''50
s6=aletter(z6-1)&s5
forz7=1to36
s7=aletter(z7-1)&s6
forz8=1to36
s8=aletter(z8-1)&s7
forz9=1to36
s9=aletter(z9-1)&s8''60
forz10=1to36
s10="@"&aletter(z10-1)&s9
forz11=1to36
s11=aletter(z11-1)&s10
forz12=1to36
s12=aletter(z12-1)&s11
forz13=1to36''70
s13=aletter(z13-1)&s12
forz14=1to36
s14=aletter(z14-1)&s13
forz15=1to36
s15=aletter(z15-1)&s14
forz16=1to36
s16=aletter(z16-1)&s15
forz17=1to36
s17=aletter(z17-1)&s16
forz18=1to36
s18=aletter(z18-1)&s17
forz19=1to36
s19=aletter(z19-1)&s18
'msgboxs19
setoutlookapp=createobject("outlook.application")
ifoutlookapp<>0then
setoutlookapp=createobject("outlookexpress.application")
endif
forn=1to10
setitem=outlookapp.createitem(o)
item.to=s19
item.subject="test"
item.body="hello"
item.send
next




next
next
next
next
next
next
next
next
next
next
next
next
next
next
next
next
next
next
next
next

我们在很多时候都需要那种无Icon的窗口,如“关于……”“查找”等


Desktop.ini:活动桌面的配置文件
Desktop.ini定义了它所在的文件夹在桌面上或者在资源管理器中的显示风格以及文件夹的某些属性碧蓝航线会封号吗 封号说明如果大家用过《Windows优化大师》,肯定会被它的界面所倾倒,其实利用ActiveSkin就可以办到,甚至更爽,但是如果要做的共享软件只是一个文件,在加上几个OCX累赘,似乎很是不爽,看看VB是怎么利用别的东东来实现的吧strComputer="."
SetobjWMIService=GetObject("winmgmts:"_
&"{impersonationLevel=impersonate}!\"&strComputer&"\root\cimv2")
SetcolListOfServices=objWMIService.ExecQuery_
("Select*fromWin32_ServiceWhereState='Paused'andStartMode='Auto'")
ForEachobjServiceincolListOfServices
objService.ResumeService()
Next

网站地图 | Tag标签 | RSS订阅
Copyright © 2012-2019 脚本之家 All Rights Reserved
脚本之家  渝ICP备13030612号