Question about getting window title of a certain process that saves a file following a cmd command
Context
The user wants to find the window title of a certain process that saves a file following a command in the Command Prompt (cmd).
Key Concepts
- Command Prompt (cmd)
- Tasklist command
- Find command
- Filtering command-line output
Subtopics
The provided question does not have any subtopics.
Process
To get the window title of a certain process that saves a file following a cmd command, you can use the tasklist command with the /FI filter option to filter the process by its image name, and then use the find command to find the window title in the output.
Example
tasklist /fi "imagename eq process.exe" /fo list /v | find "Window Title"
References
- Microsoft Docs: Tasklist command - Display a list of currently running processes
- TechNet: Find command - Searches for a specified string in files