- ©«¤l
 - 2035 
 - ¥DÃD
 - 24 
 - ºëµØ
 - 0 
 - ¿n¤À
 - 2031 
 - ÂI¦W
 - 0  
 - §@·~¨t²Î
 - Win7 
 - ³nÅ骩¥»
 - Office2010 
 - ¾\ŪÅv
 - 100 
 - ©Ê§O
 - ¨k 
 - µù¥U®É¶¡
 - 2012-3-22 
 - ³Ì«áµn¿ý
 - 2024-2-1 
 
  | 
                
 ¥»©«³Ì«á¥Ñ c_c_lai ©ó 2013-8-28 14:33 ½s¿è  
 
¦^´_ 5# linderlong  
§A¸ÕµÛ¥Î Shell command ªº¤è¦¡°õ¦æ¬Ý¬Ý¡G- Sub Test()
 
 -     Dim strIP As String, sp As Variant, RetVal
 
 -     Dim cts As Integer, xi As Integer
 
 -     
 
 -     strIP = "100.18.22.1,100.18.22.2,100.18.22.3,100.18.22.4,100.18.22.5,100.18.22.6,100.18.22.7,100.18.22.8,100.18.22.9,100.18.22.10"
 
 -     
 
 -     sp = Split(strIP, ",")
 
 -     cts = 0
 
 -     For xi = 0 To UBound(sp)
 
 -         cts = cts + 1
 
 -         '  RetVal = Shell("command.com /c Ping -n 1 100.18.22.1 > D:\iptest\1.txt")
 
 -         RetVal = Shell("command.com /c Ping -n 1 " & sp(xi) & " > " & ThisWorkbook.Path & "\iptest" & cts & ".txt")
 
 -         ¤u§@ªí1.Cells(cts, 1) = sp(xi)
 
 -     Next xi
 
 - End Sub
 
  ½Æ»s¥N½X |   
 
 
 
 |