Page 1 of 1

Net Commands in Purebasic

Posted: Wed Apr 11, 2012 1:29 pm
by IHDevelop
Hello everybody,

I am fairly new here and I want to scribe a program, which netcommands for example 'net session' sends to the system sends and I get the Info in a string. My idea was, to get a net.dll and the description or the other, systemcommands for XP th get the Info.
Both presupposes a knowledge which i haven't. Can help me anybody with codings or links for description to programming this in purebasic ??

Tanks in Advance ... ;-)

Re: Net Commands in Purebasic

Posted: Wed Apr 11, 2012 4:06 pm
by infratec
Hi,

the easiest way is to use

Code: Select all

RunProgram()
and use the net command of the OS.
You can listen to the console output of the program and than you can decide what you want
to do with it.

Re: Net Commands in Purebasic

Posted: Thu Apr 12, 2012 11:49 am
by em_uk
You should find what you're looking for here :

http://www.purebasic.fr/english/viewtop ... et+session