CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2000
    Location
    MO, USA
    Posts
    1,506

    Net Send Command

    Does anyone know how I could issue Net commands to the network? The one solution that i'm using now is sort of cheating. I build a .bat file with the command in it and then execute that file. It works well, but I was hoping to get a more "secure" method.

    I only need to issue the following commands, so if I can't issue all of the "Net" commands, maybe I can get to these:
    Net Send (alias) message
    Net User [/DOMAIN] >outputfile.txt

    Any suggestions?

    Thanks,
    John


    John Pirkey
    MCSD
    www.ShallowWaterSystems.com
    John Pirkey
    MCSD (VB6)
    http://www.stlvbug.org

  2. #2
    Join Date
    May 1999
    Location
    Oxford UK
    Posts
    1,459

    Re: Net Send Command

    You can download an excellent 'NetSend' class module from here :

    http://www.netfokus.dk/vbadmincode/winnt.htm

    checkout the rest of the site - it's all NT based code though.


    Chris Eastwood

    CodeGuru - the website for developers
    http://codeguru.developer.com/vb

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured