Shell

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

Shell
  1. Unread #1 - Aug 31, 2007 at 2:50 AM
  2. Osmosis
    Joined:
    Apr 29, 2005
    Posts:
    2,695
    Referrals:
    2
    Sythe Gold:
    0

    Osmosis Retired Australian Mod
    Banned

    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
    ?
     
  3. Unread #2 - Aug 31, 2007 at 4:00 AM
  4. Jazz00006
    Joined:
    Aug 26, 2005
    Posts:
    807
    Referrals:
    0
    Sythe Gold:
    0

    Jazz00006 Apprentice
    Visual Basic Programmers

    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 >

Users viewing this thread
1 guest


 
 
Adblock breaks this site