0

Hi,

I have written a v. small VB.NET program that spawns "cmd.exe" using Process, redirects stdin/out/err; works OK so far.

Does anyone know how to get :
* the details about the process currently running (if any) under cmd.exe (like how the command shell displays 'c:\windows\system32\cmd.exe - dir /s/b' when the dir command has been run); preferably not by using GetWindowText on the cmd.exe window
* the current directory of the command shell (even if some batch file or program has changed it)

Any help is much appreciated.

1
Contributor
1
Reply
2
Views
8 Years
Discussion Span
Last Post by dougy83
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.