taskmanager

Invoking windows task manager with 'performance' tab selected

谁说胖子不能爱 提交于 2019-12-12 08:39:17
问题 I am currently invoking the windows task manager using a click event in WPF. The event simply executes 'Process.Start("taskmgr"). My question is, is there a way to choose which tab inside task manager is selected when the process starts / is displayed? I am looking to have the 'performance' tab selected automatically whenever the click event is raised. Thanks for the help. 回答1: To expand on Philipp Schmid's post, I've whipped up a little demo: Run it as a console application. You need to add

Find top 10 processes with wmic command

China☆狼群 提交于 2019-12-11 22:58:45
问题 I know I can do 'wmic process list brief' to display a list of processes. Is there a way to view only the top 10 processes using the most memory? 回答1: @echo off setlocal EnableDelayedExpansion (for /F "skip=1 tokens=1,2" %%a in ('wmic process get name^,workingsetsize') do ( set "size= %%b" echo !size:~-10! %%a )) > wmic.txt set i=0 for /F "skip=1 delims=" %%a in ('sort /R wmic.txt') do ( echo %%a set /A i+=1 if !i! equ 10 goto :end ) :end del wmic.txt Output example: 96931840 iexplore.exe

Check if a python script is running on remote machine

折月煮酒 提交于 2019-12-11 19:59:38
问题 I am running a python script on say machine A. Is there any way to know if the python script is running or not from another machine B from command line? I tried getting the process list from the task manager. But it does not show any information regarding this script though it is running( it only showed cmd through which the script is executing ). 回答1: This will be a three step process. Step 1 is only required because you are Windows. If you're Mac or Linux, they already come with Step 1

Service is stopped after a few minuets of inactivity

蹲街弑〆低调 提交于 2019-12-11 18:03:24
问题 I am writing an android app using the GPS location provider in a Service that is started when the main Activity is created (unless the service is already running). I was under the impression that the service would continue to run with the unlikely exception that the task manager could killed it if there was a memory shortage. For some reason the service is restarted if there is a period of very low activity regardless of how much memory is available. When the user is outside and the GPS is

Google map is not shown in Android App

北战南征 提交于 2019-12-11 16:56:28
问题 I faced with the problem - Google map is not shown in my Android Application. The App is based on O'Reilly Android Task manager Application. Here is my layout <com.google.android.maps.MapView android:id="@+id/map" android:layout_width="fill_parent" android:layout_height="wrap_content" class="com.google.android.gms.maps.MapFragment" android:clickable="true" android:apiKey="AIzaSyALl1yI4zMyjnHoTSkgQjKQLE78uWZcAYk" android:layout_below="@id/map_location_button" android:layout_above="@+id/use

C# How to correctly set assembly title for Windows 8 Task Manager?

醉酒当歌 提交于 2019-12-11 14:15:14
问题 I've set the title & assembly info of my C# Winforms executable as follow: [assembly: AssemblyTitle("Widgets Galore")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("Widgets Inc")] [assembly: AssemblyProduct("Widgets Galore")] [assembly: AssemblyCopyright("Copyright © Widgets Inc 2012")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] ... MainForm.Text = "Widgets Galore by Widgets Incorporated"; ... // Compiles to:

Get processes name (like you can see in task manager)

此生再无相见时 提交于 2019-12-11 13:58:26
问题 How to get this part of process name with C#? WindowsAPI.GetWindowThreadProcessId(hwnd, out pid); Process p = Process.GetProcessById((int)pid); p.MainWindowTitle.ToString(); is closes I've got to. But for many programs it shows opened window names. For example instead of "Google Chrome" it shows name of the active tab. EDIT: Solution in "possible duplicated" thread lists things I've tried. From what I've gathered "Process" doesn't even contain information which is used in Task manager. 来源:

cant go to the root dirctory in ascx src

非 Y 不嫁゛ 提交于 2019-12-11 09:18:23
问题 I start to build DNN taskMagnager moduel and I need to use the controls in acsx page C:\inetpub\wwwroot\dnndev\controls the problem is that my project folder path is C:\inetpub\wwwroot\dnndev\DesktopModules\TaskManager" and when Im trying to go to path like this: <%@ Register TagPrefix="dnn" TagName="label" **Src="~/controls/lablecontrol.ascx"** %> the src cant be found! No matter what I do its always turns to C:\inetpub\wwwroot\dnndev\DesktopModules\TaskManager\="~/controls/lablecontrol.ascx

Change name of process in Task Manager [duplicate]

﹥>﹥吖頭↗ 提交于 2019-12-10 13:33:55
问题 This question already has answers here : How to set a project's executable processname? (5 answers) Closed 6 years ago . I have a windows form application running on a server. Now I need to have multiple instances of the same application running at the same time. Each instance will connect to a different database. During the application startup I change the title so I can identify which DB is connecting to, but I'd like to change the name in the Task Manager also. This because I have another

Retrieving Information from Task Manager using Powershell

六月ゝ 毕业季﹏ 提交于 2019-12-10 12:14:29
问题 Am currently working with a business automation software, the idea is Robots simulate user actions. Is there a way to access the task manager through powershell as the robots are meant to manipulate the task manager e.g Pass in a value to start a new task, end a process and view the performance of the cpu etc . I know this can be achieved using powershell scripts or better still vb script. Please how do I achieve this? For the records, I am using a windows 7 machine with powershell version 3