taskmanager

How to count amount of processes with identical name currently running, using a batchfile

落花浮王杯 提交于 2019-11-30 13:39:48
I would like to use a batch file to compare the number of processes named "standard.exe", that are running on my Windows 7 machine, with the number of processes named "basic.exe". If the amount of processes called "standard.exe" equals the amount of processes called "basic.exe" nothing should happen, if the numbers are unequal, basic.exe should be restarted. Any ideas? Already found the following code to check whether a process is running, but now I would like to count the number of processes carrying the same name. tasklist /FI "IMAGENAME eq myapp.exe" 2>NUL | find /I /N "myapp.exe">NUL if "

Show black preview screen in task manager on ICS

≯℡__Kan透↙ 提交于 2019-11-30 05:28:47
问题 I want to show a black screen in the task manager preview under Ice Cream Sandwich, like the German 'finanzstatus' app does. It would be nice if someone could point me in the right direction. 回答1: Using FLAG_SECURE will block your app from screenshots, including the recent tasks list: public class FlagSecureTestActivity extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); getWindow().setFlags(LayoutParams.FLAG_SECURE, LayoutParams

How to get applications from Windows Task manager (Applications Tab) + their locations on HDD from Delphi

*爱你&永不变心* 提交于 2019-11-30 05:21:17
问题 I would like to get list of programs running and visible in windows task manager's Applications Tab (not processes tab) and get their locations on HDD? I need it to be done in Delphi. Anybody can help? 回答1: As far as I know, Application tab in Task Manager is a list of top-level windows which are not owned by other windows, have no parent, and are not tool windows. In my Process Info, I have a unit called AppInfo.pas which returns a list of windows with such characteristics, and the list

Detect End Process From Task Manager In C#

耗尽温柔 提交于 2019-11-30 04:46:37
问题 I have an application in C#, and would like to monitor its current status, i.e. whether its running or closed. So far i am able to track the status if the application exits during a run time error, or any other in application exit codes. But i am unable to log the application status when it is force closed by task manager. Is there a way to monitor End Process events? or do i have to design a separate service to keep a watch on my application (which i find would be a waste of resources)?

What is the difference between closing an application and ending the process from Task Manager?

耗尽温柔 提交于 2019-11-30 04:30:08
问题 What is the difference between killing an application using the close button and ending the process from the Task Manager? I am aware of the fact that hitting the close button posts a WM_CLOSE message in the message queue, but I don't know what happens when we kill a process from Task Manager (or any similar application like Killbox or Process Explorer). 回答1: When you click the "X" button in the title bar of an application's window, that sends the window a WM_CLOSE message. This is a

“Mem Usage” higher than “VM Size” in WinXP Task Manager

自作多情 提交于 2019-11-30 03:49:05
In my Windows XP Task Manager, some processes display a higher value in the Mem Usage column than the VMSize. My Firefox instance, for example shows 111544 K as mem usage and 100576 K as VMSize. According to the help file of Task Manager Mem Usage is the working set of the process and VMSize is the committed memory in the Virtual address space. My question is, if the number of committed pages for a process is A and the number of pages in physical memory for the same process is B, shouldn't it always be B ≤ A? Isn't the number of pages in physical memory per process a subset of the committed

Current memory usage display is always ~14MB more than task manager

两盒软妹~` 提交于 2019-11-29 18:03:40
I'm currently using the code in this answer , with some slight modifications as suggested in the comments. However, no matter how many objects I allocate in memory, the listed memory usage is always ~14MB more than what task manager lists. Why could this be? std::stringstream ss; PROCESS_MEMORY_COUNTERS_EX pmc; GetProcessMemoryInfo(GetCurrentProcess(), (PROCESS_MEMORY_COUNTERS*)&pmc, sizeof(pmc)); SIZE_T physMemUsedByMe = pmc.WorkingSetSize; ss << "\nMEM: " << (physMemUsedByMe / 1024 / 1024) << " MB"; debugText.setString(ss.str()); Results on a normal build: debugText: Task Manager: Resource

C# Get RDC/RDP and “Console” Session information

老子叫甜甜 提交于 2019-11-29 06:59:44
I'm trying to retrieve some RDC/RDP and "Console" login information programmatically via C#. I want to develop a simple console application (.EXE) such that I can retreive the information from Task Manager -> Users Tab of any remote computer on our domain (Windows Server 2003 x86, or 2008R2 x64). This shows if a person is logged onto the server directly (i.e. the Console) or over RDC/RDP (including the client if it is still active) or disconnected if it is "suspended" (i.e. they have not logged off but just closed the RDC/RDP windows temporarily) I have admin permissions on all servers and can

How can I set the Task Manager description for my program?

泪湿孤枕 提交于 2019-11-29 06:40:29
I have a CLI program and I'd like to modify the description shown for it in Windows Task Manager. I tried setting Description in the Assembly Info , but this only changes the .exe's Properties > Details . Under the Project properties, click Assembly Information and set the Title field. You'll have to run without debugging to see the description display correctly in Task Manager. I think, if in AssemblyInfo: [assembly: AssemblyProduct("")] and [assembly: AssemblyTitle("")] both are set, then AssemblyProduct wins for Taskmanager description. If only AssemblyTitle is set, then it's shown as

“Mem Usage” higher than “VM Size” in WinXP Task Manager

做~自己de王妃 提交于 2019-11-29 00:47:20
问题 In my Windows XP Task Manager, some processes display a higher value in the Mem Usage column than the VMSize. My Firefox instance, for example shows 111544 K as mem usage and 100576 K as VMSize. According to the help file of Task Manager Mem Usage is the working set of the process and VMSize is the committed memory in the Virtual address space. My question is, if the number of committed pages for a process is A and the number of pages in physical memory for the same process is B, shouldn't it