| View previous topic :: View next topic |
| Author |
Message |
vtol Valued Contributor


Joined: 05 Feb 2004 Posts: 656 Location: Eastern Indiana
|
Posted: Sun Sep 25, 2005 10:32 pm Post subject: can VDS GET last CMD ran in windows & what prog ran it? |
|
|
Can VDS and (or with some DLL/DSU) GET the last CMD ran in windows and find out what what program ran it?
Thanks |
|
| Back to top |
|
 |
vdsalchemist Admin Team

Joined: 23 Oct 2001 Posts: 1448 Location: Florida, USA
|
Posted: Mon Sep 26, 2005 11:24 pm Post subject: |
|
|
Hmmm,
I have never heard of anyone wanting to do this so I don't think there is a way? Also what exactly do you mean by 'CMD'? Are you talking about the command window?
I guess the only true way that you could possibly find this out is to look at setting a System global message hook but I don't think that VDS can do this.
The only other way I can think of is to use the TaskList in VDS. Put the list in a tight loop and ignore the WM_QUIT or WM_CLOSE messages. Wait until the TaskList has 2 tasks listed and when it does then one task will be your program and the other will prob. be progman.exe since it keeps your desktop alive. After you program and progman closes I would imagine that the different services will start shutting down.
Note messing with the boot process and shutdown process of Windows can cause system coruption if your don't take care. _________________ Home of
Give VDS a new purpose!
 |
|
| Back to top |
|
 |
vtol Valued Contributor


Joined: 05 Feb 2004 Posts: 656 Location: Eastern Indiana
|
Posted: Tue Sep 27, 2005 5:39 pm Post subject: |
|
|
Hi
As ar as CMD, I meant command.
What I got is sometimes when I'm connected to the internet(dial-up) something disconnects it, thinking maybe its a spammy demo program I have installed and want to uninstall it.
Thanks for all your help  |
|
| Back to top |
|
 |
|