ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

´ú¸ÕIP

¦^´_ 14# linderlong
§Aª½±µ±N Debug µe­±§¹¾ã Copy ¤W¶Ç (»Ý¦³¿ù»~ÂI«ü¦V)

TOP

¦^´_ 14# linderlong
¸ÕµÛ¦b WinX 64 ¦ì¤¸Àô¹Ò¤U´ú¸Õ¬O§_OK¡H

TOP

¥»©«³Ì«á¥Ñ linderlong ©ó 2013-8-30 14:43 ½s¿è

¦bw7,64¦ì¤¸,office2007¤U¡A³v¨B°õ¦æ®É¡A«h°±¦b¤U¦C«ü¥O¡A
RetVal = Shell("command.com /c Ping -n 1 " & Cells(i, 1) & " > " & ThisWorkbook.Path & "\" & i & ".txt")

«ö¤@¤U»¡©ú¡A¥X²{¥H¤U¤å¦r¡A¦ý¬Ý¤£À´¡A¤£ª¾¦p¦ó­×¥¿¡H¤£ª¾¹D¬O¤£¬O§ä¨ì command.com ³o­Ódos«ü¥O¡H

§ä¤£¨ìÀÉ®× (¿ù»~ 53)

©Ò«ü©wªºÀɮק䤣¨ì¡C¦¹¿ù»~¦³¥H¤Uªº°_¦]©M¸Ñ¨M¤èªk¡G
¡E        ³¯­z¦¡¦p Kill¡BSetAttr ©Î Name µ¥¡A¤Þ¥Î¨ì¤@­Ó¤£¦s¦bªºÀɮסC
ÀˬdÀɮצWºÙªº«÷¦r¥H¤Î¸ô®|»¡©ú¡C
¡E        ±ý©I¥s°ÊºA³sµ²µ{¦¡®w (DLL) ¤¤ªºµ{§Ç ©Î Macintoshµ{¦¡½X¸ê·½°Ï¡A¦ý§ä¤£¨ì¦b Declare ³¯­z¦¡ªº Lib ¤l¥y¤¤©Ò«ü©wµ{¦¡®wÀɮצWºÙ©Î¸ê·½·í®×¦WºÙ¡C
ÀˬdÀɮצWºÙªº«÷¦r¥H¤Î¸ô®|»¡©ú¡C
¡E        ¦bµo®iÀô¹Ò¤¤¡A¦pªG±z±ý¶}±Ò¤£¦s¦bªº±M®×©Î¸ü¤J¤£¦s¦bªº¤å¦rÀɮסA±Nµo¥Í¿ù»~¡C
ÀˬdÀɮצWºÙ©Î±M®×¦WºÙªº«÷¦r¥H¤Î¸ô®|»¡©ú¡C
¸Ô²Ó¸ê°T¡A¥i¿ï¨ú¦³ºÃ°Ýªº¶µ¥Ø¨Ã«ö¤U F1 (¦bWindows¤¤) ©Î HELP (¦bMacintosh¤W)¡C
Às

TOP

À³¸Ó¤£¬Oofficeªº°ÝÃD¡A¦Ó¬O§@·~¨t²Îw7¡A32¦ì¤¸¡A¥i¥H°õ¦æ¡A¦Ó¦b64¦ì¤¸¨t²Î¡A«h¿ù¦b
RetVal = Shell("command.com /c Ping -n 1 " & ¤u§@ªí1.Cells(cts, 1) & " > " & ThisWorkbook.Path & "\iptest" & cts & ".txt")
³o¦æ«ü¥O¤W¡A¤£ª¾¬°¦ó­ì¦]¡HÁÂÁ¡I
Às

TOP

¦^´_ 10# linderlong

TOP

¦^´_ 10# linderlong
  1.         RetVal = Shell("command.com /c Ping -n 1 " & ¤u§@ªí1.Cells(cts, 1) & " > " & ThisWorkbook.Path & "\iptest" & cts & ".txt")
½Æ»s¥N½X
¸g¹ê¦a¦b Excel 2010  ¤U´ú¸Õ¬OµL»~ªº¡A
½ÐÀˬd§Aªº°õ¦æ¿ù»~ÂI¬O¦b­þ¤@¬q¡H

TOP

¦^´_ 9# c_c_lai
¤w§ï¬°sheet1.cells(i,1)¦bw7,64¦ì¤¸,office2007¤U¡A¤´ÂµLªk°õ¦æ¡A¤£ª¾¬°¦ó­ì¦]¡HÁÂÁ¡I
Às

TOP

¦^´_ 8# linderlong
½Ð±N Cells(i, 1) ©ú½T«ü©w ¤u§@ªí³æ¤§ÂkÄÝ¡C
Ä´¦p¡G Sheet1.Cells(i, 1) µ¥¡C

TOP

¦^´_ 6# c_c_lai
°²³]a1¦Üa10Àx¦s®æ¤º®e¦U¬°100.18.22.1¦Ü100.18.22.10¡A¦Ó±Npingªºµ²ªG¨Ì§Ç©ñ¦bB1¦ÜB10ªºÀx¦s®æ¤W¡Aµ{¦¡¦p¤U¡A¤w¸g´ú¸Õ¦bxp¤ÎW7¡A32¦ì¤¸¥i¥H°õ¦æ¡A¦ý¦bW7¡A64¦ì¤¸¨t²Î«h¦b    RetVal = Shell("command.com /c Ping -n 1 " & Cells(i, 1) & " > " & ThisWorkbook.Path & "\" & i & ".txt") ³o¦æ«ü¥Oµo¥Í¿ù»~¡A½Ð°Ý¦p¦ó­×¥¿¡HÁÂÁ¡I

¥t¥~¤£ª¾¦³µL¤èªkª½±µ±N ping ªºµ²ªGª½±µ¼g¤JB1¦ÜB10ªºÀx¦s®æ¡A¦Ó¤£¥²¸g¥Ñ¼g¤JtxtÀÉ«á¡A¦A¶}±ÒtxtÀɱN¨ä¼g¤JB1¦ÜB10Àx¦s®æ¤º¡C¤Q¤À·P¿E¡I

Sub Test()
  Columns("B:C").Select
  Selection.ClearContents
  ¶O®É = Timer
  For i = 1 To 10
    RetVal = Shell("command.com /c Ping -n 1 " & Cells(i, 1) & " > " & ThisWorkbook.Path & "\" & i & ".txt")
  Next i
  
  ¥ð®§ = Timer
  Do While Timer - ¥ð®§ < 2
    DoEvents
  Loop
   
  For i = 1 To 10
    ¤å¦rÀÉ = ThisWorkbook.Path & "\" & i & ".TXT"
    ¥N½X = FreeFile    ' ¨ú±o¥¼¨Ï¥ÎªºÀÉ®×¥N½X¡C
    Open ¤å¦rÀÉ For Input As #¥N½X
    ¦rªø = LOF(¥N½X)
    Cells(i, 2) = Input(¦rªø, #¥N½X)
    Close #¥N½X    ' Ãö³¬ÀɮסC
  Next i
  Cells(1, 3) = Timer - ¶O®É
End Sub
Às

TOP

¥¿¬ã¨s¤¤¡A¤Q¤À·P¿E¡IÁÂÁ¡I
Às

TOP

        ÀR«ä¦Û¦b : §Ñ¥\¤£§Ñ¹L¡A§Ñ«è¤£§Ñ®¦¡C
ªð¦^¦Cªí ¤W¤@¥DÃD