Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. varible in shell

varible in shell

Scheduled Pinned Locked Moved Visual Basic
questionlinuxhelp
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    bamnet
    wrote on last edited by
    #1

    how can i use a varible in a shell command; so the shell executes net send dell (my input)? dim message as string message = txtMsg.text Shell ("net send dell" message) HELP

    R 1 Reply Last reply
    0
    • B bamnet

      how can i use a varible in a shell command; so the shell executes net send dell (my input)? dim message as string message = txtMsg.text Shell ("net send dell" message) HELP

      R Offline
      R Offline
      Ray Cassick
      wrote on last edited by
      #2

      Something like this maybe?

      Dim sendString As String
      Dim varData As String
      varData = "Hello world!"
      sendString = "net send dell" & varData
      Shell(sendString)


      Paul Watson wrote: "At the end of the day it is what you produce that counts, not how many doctorates you have on the wall." George Carlin wrote: "Don't sweat the petty things, and don't pet the sweaty things." Jörgen Sigvardsson wrote: If the physicists find a universal theory describing the laws of universe, I'm sure the asshole constant will be an integral part of that theory.


      N 1 Reply Last reply
      0
      • R Ray Cassick

        Something like this maybe?

        Dim sendString As String
        Dim varData As String
        varData = "Hello world!"
        sendString = "net send dell" & varData
        Shell(sendString)


        Paul Watson wrote: "At the end of the day it is what you produce that counts, not how many doctorates you have on the wall." George Carlin wrote: "Don't sweat the petty things, and don't pet the sweaty things." Jörgen Sigvardsson wrote: If the physicists find a universal theory describing the laws of universe, I'm sure the asshole constant will be an integral part of that theory.


        N Offline
        N Offline
        Nick Seng
        wrote on last edited by
        #3

        Ray Cassick wrote: sendString = "net send dell" & varData You need to specify a space here :) "dell " Your friendly neighbourhood typo police! Notorious SMC


        The difference between the almost-right word & the right word is a really large matter - it's the difference between the lightning bug and the Lightning Mark Twain
        Get your facts first, and then you can distort them as much as you please Mark Twain

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups