Command Shell capabilities

T

Tony

Using a MinLogon setup and Command Shell, is there a way to

1) monitor approximate memory and/or other resource usage?

2) launch 2 console applications from a single CMD window? I tried
using "CMD MyApp.exe /K" to accomplish this, but it seemed that the
first application launched just goes off somewhere in la-la land and
the second application can't communicate with it (using sockets).

Thanks!

- Tony H.
 
K

KM

Tony,

1) I guess there is a lot of way how to do that from API level. E.g. ToolHelp32 API, or even easier - PS API
(EnumProcesses/OpenProcess/GetProcessMemoryInfo).
Also, you can use WMI objects but it may be too heavy solution for Minlogon image.

2) Don't see a problem using "/K" switch (you may use "start cmd /K yourapp.exe").
What did you mean by the communication between the apps using sockets?
Do you just need to interprocess communication between your apps? Then there are a bunch of ways to do that in Windows (windows
messages, named pipes, mailslots, DDE, clipboard, IPC, shared sections, etc.). Just search in MSDN for "interprocess communication".
 
T

Tony

Hi KM,
1) Thanks, I'll look into those.
2) Using "start cmd /K MyApp.exe" worked great - I wasn't using the
"start" part of it. ("communication between the apps using sockets" =
my apps use Windows Sockets to talk to each other. That's how our
final app must communicate with other software we must use for this
project).

Thank you very much for the help!
- Tony H.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top