Click to See Complete Forum and Search --> : Net Send Command


Johnny101
February 28th, 2000, 04:03 PM
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

Chris Eastwood
February 28th, 2000, 04:14 PM
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