Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Visual Basic (Net Send)

  • 10-05-2005 06:11PM
    #1
    Closed Accounts Posts: 873 ✭✭✭


    Just playing around:

    Private Sub cmdSend_Click()
    Dim Message As String
    Message = "c:\windows\system32\net send" & Trim(txtip) & Trim(txtmsg)
    Shell (Message)
    End Sub

    Will this work? Also what is the correct path to net send in wondows XP SP2 (i have carried out all the functions to re enable net send on SP2) iv tried doing a search for net send in the windows folder but it didnt throw anything up to me!


Comments

  • Closed Accounts Posts: 873 ✭✭✭neon_glows


    Im using VB6


  • Closed Accounts Posts: 92 ✭✭tempest


    neon_glows wrote:
    Just playing around:




    Will this work? Also what is the correct path to net send in wondows XP SP2 (i have carried out all the functions to re enable net send on SP2) iv tried doing a search for net send in the windows folder but it didnt throw anything up to me!

    Why not compile it and run it to see? :rolleyes:

    c:\winnt\system32\net is the path to net.

    By the way net is the name of the application and send is a command to the application which is passed as a parameter. It may well influence the syntax of your command.

    If that doesn't work you could always write a .bat file on the fly and execute that.


  • Closed Accounts Posts: 873 ✭✭✭neon_glows


    Thanks you helped me understand it a little better and i was able to come up with the solution, for anyone who wants it:

    Private Sub cmdSend_Click()
    Dim Message As String
    Message = "c:\windows\system32\net send"
    Message = Message + " "
    Message = Message + (txtip)
    Message = Message + " "
    Message = Message + (txtmsg)
    Shell (Message)
    End Sub


Advertisement