Adblock breaks this site

Shell

Discussion in 'Archives' started by Osmosis, Aug 31, 2007.

  1. Osmosis

    Osmosis Retired Australian Mod
    Banned

    Joined:
    Apr 29, 2005
    Posts:
    2,695
    Referrals:
    2
    Sythe Gold:
    0
    Shell

    I want to include the value for text2.text into this shell command;
    Code:
    Shell ("Ping text2.text  -n 100 -l 32")
    Here's what I've got (simplified)
    Code:
    Dim IP
    Shell ("Ping IP -n 100 -l 32")
    What would be the correct way to input the value of text2.text (IP) into the shell command while keeping the
    Code:
    -n 100 -l 32
    ?
     
  2. Jazz00006

    Jazz00006 Apprentice
    Visual Basic Programmers

    Joined:
    Aug 26, 2005
    Posts:
    807
    Referrals:
    0
    Sythe Gold:
    0
    Shell

    Code:
    Call Shell("Ping " & Text2.Text & "  -n 100 -l 32", vbNormalFocus)
    Tested it with a simple loop back address test.
     
< Omfg Amazing At Its Lvl 52!! | Selling Rc Pure *66 Rc* 55 CB >


 
 
Adblock breaks this site