182 questions
0
votes
0
answers
63
views
How to know a windows title of a process after launching it, but that process changed the title
This is puzzling to me. I launch the a process via command line or a batch file in windows:
>start "MY_TITLE" one_process.exe %some_arguments%
So ideally the application (window) title ...
1
vote
1
answer
53
views
Why cannot assign a window title to a background python process
I have a very simple python script inifinity_loop.py:
import time
i = 0
interval = 5
while True:
print(f'I am counting {i} seconds')
time.sleep(interval)
i += interval
and I want to ...
1
vote
1
answer
208
views
Ending specific task/process with batch script if it's found in tasklist
For context, I found this among XAMPP batch files:
@echo off
SetLocal EnableDelayedExpansion
set "PID_LIST="
for /f "tokens=2" %%V in ('tasklist.exe ^| findstr /i "%1" ...
0
votes
1
answer
58
views
Finding specific application from location running, not just the application.exe?
I want a way of running and checking two of the same application.exe's using two different batch scripts, (in case they crash). In order to do this, I need to check each one individually based on the ...
0
votes
2
answers
567
views
How to close a particular instance of Exe file using bat file if more than one instances are open from different directories
Please Help me in this out that I have two instances of the same EXE file running at same time and I want to close only one of them, Both exe are running at the same time and we want to close one ...
0
votes
1
answer
344
views
how can I identify and kill orphaned Excel instances in the Task Manager list
Somehow we periodically end up with an orphaned Excel instance in the Task Manager list. I can manually end the process, but I would like to figure out a way to identify them programmatically.
Then I ...
0
votes
2
answers
2k
views
How to get tasks from process instance id using camundatasklistclient api in java camunda 8
I am using camunda 8 and refering below link for getting task from processinstance id
https://github.com/camunda-community-hub/camunda-tasklist-client-java
I have added the dependency mentioned in ...
0
votes
1
answer
342
views
How can I get the tasklist result of exec() from child_process in JSON format?
When I execute tasklist on child_process the stdout retuns the processes in Unicode string format which I cannot easily query.
This is my code;
var exec = require('child_process').exec;
...
exec('...
0
votes
1
answer
241
views
Filter Task List with buttons (with metod filter)
I need to filter with this method the tasks that have been completed, those that are not completed and that all appear, interacting with the three buttons; to be able to filter these tasks with these ...
0
votes
1
answer
160
views
How to define "checkboxCallback" function in this TakTile StatefulWidget widget?
I was trying to implement a Global state. When I used callbacks these errors occurred. I didn't get these errors. Please help.
Errors
======== Exception caught by widgets library ======================...
0
votes
1
answer
191
views
Sharepoint Online - Update task list items
We are having issues with updating task lists in Sharepoint Online.
Process is:
We have a Sharepoint Online site with a task list in it (compatible list with MS Project).
We have a web application (...
-2
votes
2
answers
255
views
How do I get the raw number of bytes for a PID on Windows CLI?
With lots of research, I've got to this point:
tasklist /fi "pid eq 13584" /fo CSV
Output:
"Image Name","PID","Session Name","Session#","Mem ...
0
votes
1
answer
1k
views
Remove comma from variable in CMD
How are you all doing?
I made a batch file that gets the memory usage of a process that has a specific PID...
Here is the code:
@Echo off
REM Get memory from process using tasklist
for /f "...
1
vote
2
answers
4k
views
Get PID from tasklist command
I am using tasklist to bring me information about a specific service/proccess running on my Windows Server.
The command:
tasklist /svc /fi "SERVICES eq .Service02"
The output:
Image Name ...
0
votes
1
answer
1k
views
How can I include the WindowTitle column in the output from tasklist?
I'm getting the below output from the command tasklist /fi "imagename eq cmd.exe"
Image Name PID Session Name Session# Mem Usage
========================= ======...
-1
votes
1
answer
2k
views
Runtime.exec() returning null
I have seen similiar questions on this site, but none of them seem to address/solve my problem, so I figured there is something specifically wrong with my program. I am trying to execute a very simple ...
0
votes
1
answer
2k
views
How to find the process id that is running my Java Application
I know it's quite basic question but still I am not clear about it. When I am running my jar file in background in windows using below command using bat file:
start javaw -jar myApp.jar
It start the ...
1
vote
1
answer
563
views
Cant get tasklist batch file to output substring
Not really a batch file user (more of a python guy here) wanting to get an output to just show the video title in a MS Edge YouTube tab (ultimately into a txt file, but I am going one step at a time ...
0
votes
1
answer
2k
views
Why is my usage of command TASKLIST not working as expected?
I have a problem on checking the running state of another batch file using the command TASKLIST and continue processing the batch file depending on the result.
This is the code of my batch file which ...
1
vote
1
answer
573
views
Java " tasklist.exe /fo csv /nh"command taking forever to load in process waitFor
I am calling method command in main() by command(" tasklist.exe /fo csv /nh");
This is my code snippet :
String command(String command)throws Exception
{long start=System....
1
vote
0
answers
40
views
How to differentiate StoreApps from Other Normal Apps?
When some application are running how can we differentiate whether it is storepps or other normal apps.
When we type tasklist /apps in powershell or command prompt,windows will gives us all the ...
1
vote
1
answer
49
views
Sheet View struct crashes due to "unresolved identifier" error
First Stack Overflow Question
I'm new to iOS Development. This is my second app in the class and I've followed along the tutorial and I cannot figure out what is wrong here.
I created a new SwiftUI ...
0
votes
1
answer
783
views
Adding task list to my HTML using javascript and css
So I am making a task list for my html like you can see here in this link https://jualston.github.io/wingit/milestonetest.html, but i must separate the css and js into their respective folders and ...
0
votes
1
answer
425
views
tasklist -v truncation of output
Evidently the Windows dos cmd "tasklist -v " is truncating lines after so many characters.
My perl program is reading in special command processes to compare against processes stored in my ...
-1
votes
1
answer
311
views
How do I simply kill a process from my batch file? [closed]
My code needs to check if notepad.exe is listed under tasklist. If it is, the batch file will close it.
@echo off
tasklist /fi "imagename eq notepad.exe" > nul
if errorlevel 1 taskkill ...
0
votes
1
answer
259
views
Batch: Checking if process is active not working
this feels like a stupid issue but I can't solve it somehow.
I want my batch file to check if a specific process is running. I've used an example from this page and it's working sometimes:
@echo off
...
3
votes
1
answer
590
views
How to set default sorting in camunda tasklist?
I'm trying to set default sorting order in camunda tasklist filter to asc by created date.
Found only this suggestion which says that I should use maven replacer plugin. But I would like to make it ...
0
votes
2
answers
1k
views
Grouping Windows in the tasklist
I'm currently using the icon-only style tasklist from here on all tags. This gives me a nice overview of everything that's running on my system. If I have a lot of programs running the taskbar tends ...
-2
votes
2
answers
13k
views
Batch Script to get % CPU and % MEM Usage of particular process [closed]
Can you help me writing Batch script to get the Percentage CPU and Percentage MEM usage of a particular process. I searched a lot but didn't found any solution.
1) Tried with "Tasklist" command but ...
-3
votes
1
answer
3k
views
How would I check if a named program is running in a batch script?
For some reason it says awesome even when the program is not open, and even if I put in a window name like "asdfsd" or something random. Can anyone help?
@echo off
:start
tasklist | find /I "...
0
votes
0
answers
80
views
Not possible to use JSF with camunda tasklist?
I want to use the camunda tasklist with JSF external forms. My problem is that I can not get the userid from the logged in user. I need the user id to store my data.
I tried to get it via ...
1
vote
0
answers
28
views
A process that keeps coming back even if I forcefully shut it down
Everyone.
I'm trying to quit the program called 'test.exe' with the following command:
taskkill / f / im "test.exe"
And I run the following command.
tasklist
but Only the pid number changes and the ...
1
vote
0
answers
254
views
How to check a child application name from Task Manager using a bat file?
I want to check a particular application name from the Task Manager using a bat file. I have opened three word document files and from the Task Manager I can see the process as shown in the below ...
1
vote
3
answers
888
views
Substring index out of bounds in java
I am writing a simple code that displays only the name of the processes which are of "console" type using tasklist in java.
I am unable to do so because of the string index out of bounds error in ...
1
vote
0
answers
181
views
How to test if a window is open from a batch file even if there are multiple windows from the same program?
I am using a batch file to make sure that an emulator that I am using exits completely when I close the game window. The problem is that the program (PCSX2 if that matters) has multiple windows, the ...
1
vote
0
answers
76
views
Getting all parameters and operations done by an exe
This may be a noob question but just for clarification.
For example I have any windows executable. How do I check what parameters or OS operations is done by it?
For example I can use tasklist|findstr ...
0
votes
0
answers
328
views
Maya Python Script - os.popen tasklist read Is super slow. Faster way?
I'm checking os tasklist to find out if an external app is running or not. The script is run through python & maya. This command takes more than 10 seconds which seems very slow to fetch a list of ...
0
votes
1
answer
588
views
how do I check for only running apps using tasklist command in a batch file?
I'm trying to print a list of running applications into a batch file, but I don't want to include the background processes on my computer. I've been experimenting with the tasklist command but can't ...
0
votes
0
answers
25
views
How to acquire memory consumption information in Java
I am new to Java. I want to retrieve the memory consumptions of different running Java programs. For example, I write the following program variations,
import java.util.*;
public class HelloWorld2{
...
1
vote
1
answer
247
views
Is there a way for tasklist on windows to read variables made by set?
I'm trying create a batch-file which checks if my mysql server is up and running before running other stuff. I'm trying to do this by reading the .pid file, (set to a variable, %pid%), then ask ...
-1
votes
1
answer
2k
views
How to automate the "refreshing a cmd window"?
I am calling a program using batch file which Pops-up a cmd window. I need to refresh it every 30 seconds and I can do it manually by writing R in the cmd. I want to automate it now.
Solution I ...
0
votes
1
answer
1k
views
Output additional details to command line using tasklist
So I am trying to do something I thought would be simple little script.
All I want is to output to file (CSV or whatever) output from TaskMgr in Windows.
If I use tasklist /v /fo csv > data.csv I ...
-1
votes
1
answer
374
views
I need to do output for Spotify's current song through cmd request into txt file
I need to limit output to one line (Window Header: Au5 - Halcyon). Then I need to write result to txt file. Can you help me with this?
C:\Windows\system32>for /f "tokens=* skip=9 delims= " %g in ('...
0
votes
2
answers
2k
views
Tasklist csv script
I'm trying to create a log file that include process and memory consumption on a windows desktop.
I'm new to script programming and i'm really struggling to complete this task.
I found that command ...
1
vote
0
answers
67
views
checking if a file is running
I am trying to monitor if a batch is running or not and if it is not the case send an email.
I am using the following code :
Set "MyProcess=cmd.exe"
Set "taskToMonitor=taskToMonitor"
tasklist /NH /...
3
votes
0
answers
2k
views
Appending Datetime into an Array (Python)
Scope: to produce a script that fetches the task list from windows cmd, stores it as an array, appends an identical timestamp to each task, and then appends it to a text file as a comma-delimited ...
3
votes
4
answers
4k
views
syntax for testing TASKKILL's errorlevel
What is the correct syntax for testing the errorlevel of TASKKILL in the context of the batch file shown below?
:Launch
start "CloseMe" "C:\Program Files\internet explorer\iexplore.exe" "file://C:\...
0
votes
1
answer
2k
views
Batch command tasklist for remote computer
i'm trying to use tasklist command in cmd.exe for list all processes on my remote Windows 10 PC (which is in my home and connected on the same network as my main computer).
But when I type in cmd.exe ...
1
vote
1
answer
1k
views
How do you update a ListBox with running processes in real-time?
In Windows, the Task Manager updates itself automatically with all of the running processes on your Laptop/Desktop. However, that is not my point.
My question is, is there a way to update a ListBox (...
12
votes
3
answers
51k
views
Get only PID from tasklist using cmd title
Desired output:
1234
Just the PID. Nothing else - no other characters, numbers, or symbols.
I'm trying to run tasklist so it gives me only the PID of a named or titled process.
tasklist | findstr /...