If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Start Windows Task Manager by command-line (or batch file)
Hi to all,
batch file launched by desktop shortcut (WinNT, win2000 e WinXp). Its task is to do some elaboration if and only if some processes are inactive, that is if the user had first stopped the application. Is that possible inside a batch file? I know executable's names (the same appeared into Windows Task Manager Processes table), how could I discover if there are active processes with that name? And if I would to kill them? It would be enough to start Windows Task Manager (taskmgr.exe) by command-line/batch file but I didn't reach it! It must be possible to do that! Almost all executables can be launched by shell with some flag to hide their GUI. I just need to: 1. start Windows Task Manager inside my batch file 2. list all active processes 3. discover the wanted-processes (if there are...) 4. kill them Note: I strongly prefer no turn to external program, it would be better to do all that only with Windows resources, (otherwise I need to install that program too...) Thanks in advance, ciao G. P.S. Sorry if I post here, my question is not about win9x rather nt-2000-xp. But my hope is that if exists a way to manage the Task Manager by command line in win9x o.s. it will work in more recent o.s. too. -- --- Rimuovi il testo in maiuscolo (CANCELLA e QUESTO) dall'indirizzo di reply per rispondermi, grazie --- Remove capital text (CANCELLA and QUESTO) from reply address to write me, thanks |
#2
|
|||
|
|||
What you are talking about sounds like a Windows script rather than a batch
file. http://www.microsoft.com/technet/scr...r/learnit.mspx "Giuseppe R." wrote in message ... Hi to all, batch file launched by desktop shortcut (WinNT, win2000 e WinXp). Its task is to do some elaboration if and only if some processes are inactive, that is if the user had first stopped the application. Is that possible inside a batch file? I know executable's names (the same appeared into Windows Task Manager Processes table), how could I discover if there are active processes with that name? And if I would to kill them? It would be enough to start Windows Task Manager (taskmgr.exe) by command-line/batch file but I didn't reach it! It must be possible to do that! Almost all executables can be launched by shell with some flag to hide their GUI. I just need to: 1. start Windows Task Manager inside my batch file 2. list all active processes 3. discover the wanted-processes (if there are...) 4. kill them Note: I strongly prefer no turn to external program, it would be better to do all that only with Windows resources, (otherwise I need to install that program too...) Thanks in advance, ciao G. P.S. Sorry if I post here, my question is not about win9x rather nt-2000-xp. But my hope is that if exists a way to manage the Task Manager by command line in win9x o.s. it will work in more recent o.s. too. -- --- Rimuovi il testo in maiuscolo (CANCELLA e QUESTO) dall'indirizzo di reply per rispondermi, grazie --- Remove capital text (CANCELLA and QUESTO) from reply address to write me, thanks |
#3
|
|||
|
|||
On Wed, 30 Mar 2005 09:25:58 +0200, "Giuseppe R."
put finger to keyboard and composed: Hi to all, batch file launched by desktop shortcut (WinNT, win2000 e WinXp). IMO, a much better group for this question is alt.msdos.batch.nt. Some very clever batch experts hang out there. - Franc Zabkar -- Please remove one 's' from my address when replying by email. |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
msgsrv32.exe | General | 5 | June 30th 05 10:34 PM | |
Error loading windows explorer.exe | Rshep | General | 17 | December 31st 04 10:32 PM |
Folder Named [C:\Program] Opens Automatically on Start | Ted Belben | General | 2 | September 16th 04 11:39 PM |
Windows Task Manager | Iqbal | Software & Applications | 4 | July 17th 04 04:39 PM |
Microsoft Security Bulletin MS04-024 - Vulnerability in Windows Shell Could Allow Remote Code Execution (839645) | Gary S. Terhune | General | 2 | July 14th 04 05:06 AM |