Click here to Skip to main content
15,911,531 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionNeed Help!! Ping search for computer names...Can anyone set up an yes or no to continue on this? Pin
Bri4hire5-May-04 10:04
Bri4hire5-May-04 10:04 
AnswerRe: Need Help!! Ping search for computer names...Can anyone set up an yes or no to continue on this? Pin
Dave Kreskowiak5-May-04 12:55
mveDave Kreskowiak5-May-04 12:55 
GeneralRe: Need Help!! Ping search for computer names...Can anyone set up an yes or no to continue on this? Pin
Bri4hire5-May-04 14:31
Bri4hire5-May-04 14:31 
GeneralRe: Need Help!! Ping search for computer names...Can anyone set up an yes or no to continue on this? Pin
Dave Kreskowiak5-May-04 15:09
mveDave Kreskowiak5-May-04 15:09 
GeneralRe: Need Help!! Ping search for computer names...Can anyone set up an yes or no to continue on this? Pin
Bri4hire6-May-04 3:55
Bri4hire6-May-04 3:55 
GeneralRe: Need Help!! Ping search for computer names...Can anyone set up an yes or no to continue on this? Pin
Dave Kreskowiak6-May-04 4:45
mveDave Kreskowiak6-May-04 4:45 
GeneralRe: Need Help!! Ping search for computer names...Can anyone set up an yes or no to continue on this? Pin
6-May-04 8:54
suss6-May-04 8:54 
GeneralRe: Need Help!! Ping search for computer names...Can anyone set up an yes or no to continue on this? Pin
Dave Kreskowiak6-May-04 9:02
mveDave Kreskowiak6-May-04 9:02 
B Yac wrote:
Select Case PingResult
Case 0: WScript.Echo "SUCCESS - " & Target
MsgBox "Do you want to continue?", vbYesNo
End Select


The code should be:
.
.
.
For I = 0 To UBound(DriveArray) 
    Target = PCName & DriveArray(I) 
    PingResult = WshShell.Run ("cmd /c ping -n 1 " & Target , 6, True) 
    Select Case PingResult 
        Case 0: WScript.Echo "SUCCESS - " & Target 
                mbResult = MsgBox("Do you want to continue?", vbQuestion + vbYesNo)
                If mbResult = vbNo Then
                    Exit For
                End If
    End Select
Next


RageInTheMachine9532
GeneralEvent Pre IIS capture for TCP/IP packet Pin
incoming715-May-04 8:24
incoming715-May-04 8:24 
GeneralRe: Event Pre IIS capture for TCP/IP packet Pin
Dave Kreskowiak5-May-04 12:50
mveDave Kreskowiak5-May-04 12:50 
Generalcodedisplaying colors in a list box Pin
Member 4169605-May-04 6:29
Member 4169605-May-04 6:29 
GeneralRe: codedisplaying colors in a list box Pin
Jarek G5-May-04 9:54
Jarek G5-May-04 9:54 
Generalcreating controls dynamically Pin
Member 4169605-May-04 6:21
Member 4169605-May-04 6:21 
GeneralC# to VB.net converter Pin
fuel2run5-May-04 4:57
fuel2run5-May-04 4:57 
GeneralRe: C# to VB.net converter Pin
Dave Kreskowiak5-May-04 5:03
mveDave Kreskowiak5-May-04 5:03 
GeneralRe: C# to VB.net converter Pin
fuel2run5-May-04 6:55
fuel2run5-May-04 6:55 
Questionrun dos commands thru VB? Pin
Jarek G5-May-04 4:08
Jarek G5-May-04 4:08 
AnswerRe: run dos commands thru VB? Pin
Dave Kreskowiak5-May-04 5:01
mveDave Kreskowiak5-May-04 5:01 
GeneralRe: run dos commands thru VB? Pin
Jarek G5-May-04 10:01
Jarek G5-May-04 10:01 
GeneralRe: run dos commands thru VB? Pin
Dave Kreskowiak5-May-04 12:47
mveDave Kreskowiak5-May-04 12:47 
GeneralRe: run dos commands thru VB? Pin
Jarek G5-May-04 13:49
Jarek G5-May-04 13:49 
GeneralRe: run dos commands thru VB? Pin
Dave Kreskowiak5-May-04 14:59
mveDave Kreskowiak5-May-04 14:59 
Generalconverting VB6 to VB.Net Pin
GaryKoh5-May-04 3:26
GaryKoh5-May-04 3:26 
GeneralRe: converting VB6 to VB.Net Pin
Dave Kreskowiak5-May-04 4:57
mveDave Kreskowiak5-May-04 4:57 
GeneralRe: converting VB6 to VB.Net Pin
jimpar5-May-04 5:05
jimpar5-May-04 5:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.