Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

VB winsock´«µÝÊý¾ÝÎÊÌâ

    ÎÒÓÃVB winsock×öÁËÒ»¸ö´«µÝCMDÃüÁîµÄÈí¼þ£¬ÎªÊ²Ã´·¢ËͶ˷¢Ë͵ÄÊý¾ÝºÍ½ÓÊն˽ÓÊÕµ½µÄÊý¾Ý²»Ò»Ñù°¡£¿£¨±¾»ú²âÊÔ£©±ÈÈçÎÒÔÚ·¢ËͶ˷¢ËÍÁËÒ»¸öÃüÁî"dir c:\ "Ϊʲô½ÓÊն˽ÓÊÕµ½µÄÊý¾ÝÈ´ÊÇÂÒÂ룿
·¢ËͶ˴úÂ룺
Private Sub Command1_Click()
For i = 0 To F1.serversk.UBound '²éÕÒ½«½ÓÊÕÊý¾ÝµÄIP¡£
If F1.serversk(i).RemoteHostIP = S Then ¡¯SΪһ¸öIP×Ö·û´®£¬Ç°Ãæ´úÂëµÃµ½µÄIP
F1.serversk(i).SendData Text2.Text
End If
Next i
End Sub

½ÓÊÕ¶Ë´úÂ룺
Private Sub Wk_DataArrival(ByVal bytesTotal As Long)
Dim datas, pdi
Dim hpro, tet As String
Wk.GetData datas
MsgBox datas ¡¯¾ÍÕâ¸ömsgboxÏÔʾ³öÀ´µÄÏûÏ¢£¬Ôõô»áÊÇÂÒÂëÄØ£¿Çë¸÷λ°ï档лл
pdi = Shell("cmd.exe /c " & datas & " >> c:\1.txt", vbHide)
hpro = OpenProcess(PROCESS_ALL_ACCESS, False, pdi)
here:
If hpro <> 0 Then¡¯Èç¹ûHPRO=0Ôò±íʾshellµ÷ÓõÄÃüÁîÒѾ­Ö´ÐÐÍê³É¡£
GoTo here:
Else
'¶ÁÈ¡1.txtÄÚµÄÄÚÈÝ
Open App.Path & "\1.txt" For Input As #2
Do While Not EOF(2)
Line Input #2, tet
Wk.SendData tet
Loop
Close #2
Kill App.Path & "\1.txt"
End If
End Sub

ÓÃpsexec¾ÍÐÐÁË¡£

http://www.google.cn/search?hl=zh-CN&newwindow=1&q=psexec%E7%94%A8%E6%B3%95&aq=3&oq=psexec


Ïà¹ØÎÊ´ð£º

asp.net(vb)ÎÊÌâ

login.aspx.vb:

    Public ReadOnly Property nameT() As String
        Get
            Return TextBox1.Text
    &nb ......

vbÓëxmlÎÊÌâ

vbÖÐÔõôͨ¹ýxmlÀ´½âÎöÊý¾Ý¿âÖеÄ×Ö¶ÎÖµ¡£
û°ì·¨ÓÃXML½âÎöÊý¾Ý¿âµÄ×Ö¶ÎÖµ£¬³ý·ÇÊý¾Ý¿âÖб£´æµÄÊÇXML¸ñʽµÄ×Ö·û´®Îĵµ¡£

XMLÓÃÀ´Õ¹Ê¾²ã´ÎµÄÊý¾Ý¡£
Êý¾Ý¿âÒ»°ãÊǶþάÊý¾Ý¡£

Êý¾Ý¿âÖб£´æµÄÊÇXML×Ö·û´®¸ñʽ£ ......

VBÐÞ¸Ä×¢²á±í

ÓÃVBÔõôֻÕë¶Ôwindows×Ô´øµÄÎļþµÄÓÒ¼üÌí¼Ó²Ëµ¥ È磨.txt .doc)
Õâ¸öÊÇÖ»Õë¶ÔÒÔÕâÁ½¸öΪÀ©Õ¹ÃûµÄÎļþ²Ù×÷
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\txtfile\shell\[Ëæ±ãÆðÃû]\command]
@= ......

VBÈçºÎÁªÏµÁ½¸ö´°Ì壿

¾ÍÊÇÉè¼ÆÒ»¸ö¼ÆËã»úÄ£Ä⿼ÊÔϵͳ£¬´øÓÐѧÉúºÍ¹ÜÀíÔ±£¬ËùÒԵǼ´°ÌåºÍÖ÷´°ÌåÏë·Ö¿ª£¬µÇ½ѧÉúµÄÏÔʾѧÉúµÄÖ÷´°Ì壬µÇ½¹ÜÀíÔ±ÏÔʾ¹ÜÀíÖ÷´°Ì壬ÎÒÖ»»áÒ»¸ö´°ÌåÓÃÒ»¶Ñ¿Ø¼þ£¬ÏÖÔÚÏíÓжà¸öÖ÷´°Ì壬²»ÖªµÀÔõô×ö£¬Ï£ÍûÇë´ó ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ