Home All Groups Group Topic Archive Search About

SystemInfo, IPCONFIG, MEM etc

Author
3 Aug 2006 8:45 PM
eSolTec, Inc. 501(c)(3)
Thank you in advance for any and all assistance.

Is there a way to get information programmatically from the data rendered at
a command prompt into say a listview box or listbox or other programming
controls?

Author
3 Aug 2006 9:43 PM
Herfried K. Wagner [MVP]
"eSolTec, Inc. 501(c)(3)" <eSolTecInc50***@discussions.microsoft.com>
schrieb:
> Is there a way to get information programmatically from the data rendered
> at
> a command prompt into say a listview box or listbox or other programming
> controls?

You could start the command line tools and capture the output if there are
no classes which support obtaining the information:

<URL:http://dotnet.mvps.org/dotnet/samples/misc/RedirectConsole.zip>

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>
Author
3 Aug 2006 10:11 PM
eSolTec, Inc. 501(c)(3)
Herfried,

Thank you for your rapid response. I'm trying to avoid Console Apps

Michael

Show quoteHide quote
"Herfried K. Wagner [MVP]" wrote:

> "eSolTec, Inc. 501(c)(3)" <eSolTecInc50***@discussions.microsoft.com>
> schrieb:
> > Is there a way to get information programmatically from the data rendered
> > at
> > a command prompt into say a listview box or listbox or other programming
> > controls?
>
> You could start the command line tools and capture the output if there are
> no classes which support obtaining the information:
>
> <URL:http://dotnet.mvps.org/dotnet/samples/misc/RedirectConsole.zip>
>
> --
>  M S   Herfried K. Wagner
> M V P  <URL:http://dotnet.mvps.org/>
>  V B   <URL:http://classicvb.org/petition/>
>
>
Author
4 Aug 2006 11:40 PM
Jeff Jarrell
look at and try windows powershell (formerly monad).  not that I have done
this sort of thing, but I was listening to a hansleminutes podcast and they
were talking about how they could call into powershell (which has the hooks
into many windows admin things) without showing it.  The nice thing about
powershell is that it is a shell where you pipe .net objects, not text
strings.

jeff


Show quoteHide quote
"eSolTec, Inc. 501(c)(3)" <eSolTecInc50***@discussions.microsoft.com> wrote
in message news:D0753B9C-7032-4514-B6D7-EC5C58B8F725@microsoft.com...
> Herfried,
>
> Thank you for your rapid response. I'm trying to avoid Console Apps
>
> Michael
>
> "Herfried K. Wagner [MVP]" wrote:
>
>> "eSolTec, Inc. 501(c)(3)" <eSolTecInc50***@discussions.microsoft.com>
>> schrieb:
>> > Is there a way to get information programmatically from the data
>> > rendered
>> > at
>> > a command prompt into say a listview box or listbox or other
>> > programming
>> > controls?
>>
>> You could start the command line tools and capture the output if there
>> are
>> no classes which support obtaining the information:
>>
>> <URL:http://dotnet.mvps.org/dotnet/samples/misc/RedirectConsole.zip>
>>
>> --
>>  M S   Herfried K. Wagner
>> M V P  <URL:http://dotnet.mvps.org/>
>>  V B   <URL:http://classicvb.org/petition/>
>>
>>