📄 netsend.frm
字号:
VERSION 5.00
Begin VB.Form Form1
Caption = "Form1"
ClientHeight = 4155
ClientLeft = 60
ClientTop = 450
ClientWidth = 6285
LinkTopic = "Form1"
ScaleHeight = 4155
ScaleWidth = 6285
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command1
Caption = "确定"
Height = 855
Left = 3960
TabIndex = 6
Top = 1200
Width = 1695
End
Begin VB.TextBox Text4
Height = 495
Left = 1680
TabIndex = 5
Top = 1560
Width = 1215
End
Begin VB.TextBox Text2
Height = 495
Left = 1920
TabIndex = 4
Top = 240
Width = 1815
End
Begin VB.TextBox Text1
Height = 1335
Left = 960
TabIndex = 3
Top = 2400
Width = 4575
End
Begin VB.CheckBox Check3
Caption = "发送次数"
BeginProperty Font
Name = "黑体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 120
TabIndex = 2
Top = 1440
Width = 1455
End
Begin VB.CheckBox Check2
Caption = "广播"
BeginProperty Font
Name = "黑体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 120
TabIndex = 1
Top = 840
Width = 1935
End
Begin VB.CheckBox Check1
Caption = "发送到"
BeginProperty Font
Name = "黑体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 735
Left = 120
TabIndex = 0
Top = 120
Width = 1695
End
Begin VB.Label Label1
Caption = "输入发送内容:"
Height = 375
Left = 240
TabIndex = 7
Top = 2160
Width = 1575
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim pcname As String
Dim n As String
Private Sub Check1_Click()
If Check1.Value = 1 Then
Text2.Visible = True
Else
Text2.Visible = False
End If
End Sub
Private Sub Check3_Click()
If Check3.Value = 1 Then
Text4.Visible = True
Else
Text4.Visible = False
End If
End Sub
Private Sub Command1_Click()
If Check1.Value = 1 And Len(Text2.Text) > 0 Then
pcnam = Text2.Text
End If
Dim n As Integer
Dim m As Integer
m = 1
If IsNumeric(Text4.Text) = True Then
m = Val(Text4.Text)
End If
For n = 1 To m
s = "net send" & pcname & " " & Text1.Text
Shell s
Next
End Sub
Private Sub Form_Load()
pcname = " * "
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -