Software-OK
≡... News | ... Home | ... FAQ | Impressum | Contact | Listed at | Thank you |

  
HOME ► Faq ► FAQ - Windows cmd.exe Command-Prompt ► ««« »»»

Export a list of running processes as a text file with cmd.exe!


It's easy to export a list of running processes as a text file using the command prompt's cmd.exe on Windows 11, 10, ... etc!




1.) ... exporting the running processes as a text file?
2.) ... Create a batch file if you want to export the process list more often!
3.) ... Why export the process list under Windows 11, 10, ... etc?
4.) ... Export the process details from the task manager!  << NEW




1.) Export the running processes as a text file?

1. First you need to open Command Prompt as administrator (Ctrl + Shift + Enter)

2. Start command "tasklist"  with parameter to export file


tasklist>C:\running_processes.txt


3. All running processes are  exported to the text file running_processes.txt

(... see Image-1 Point 1 to 4) 


Optional:
To do this, click the Windows search icon in the taskbar, type "command prompt" in the search bar, right-click the command prompt app in the search results, and then click "Run as administrator" in the context menu .


(Image-1) Export a list of running processes as a text file with cmd.exe!
Export a list of running processes as a text file with cmd.exe!

-
▲ Back to the top ▲



2.) Create a batch file if you want to export the process list more often!


A batch file for listing the running applications, programs, ... etc. is also quite practical.

1. Simply create and run the running processes.bat on the desktop  

2. The directory D:\running_processes_history is created there 
(can of course be changed)

3. Date and time are used for the file name 

4. And optionally the "current_processes.txt" file opened


Current-Processes.bat

set year=%date:~-4%
set month=%date:~-7.2%
set day=%date:~-10.2%
set date=%year%%month%%day%

:: replace : through .
set myTime=%time::=.%
set myTime=%myTime:~0,-3%

set folder=D:\running_processes_history
mkdir %folder%

set target_file=%folder%/%date%_%myTime%_running_processes.txt

tasklist>%target_file%

:: if the target file is to be opened
%target_file%

:: exit console in 3 seconds
timeout /t 3

 


3.) Why export the process list under Windows 11, 10, ... etc?

Not only for problems with your Windows 11, 10, ... etc. PC, but also as a small overview of the running programs, applications, APPs, services, ... can be created at any time, not only administrators need this to be easily exported List. You can use it to compare how many programs have been added when you export the command again as a list in a few months, to possibly send all running processes for investigation or to an administrator or Windows expert!

See also ►► Using taskkill with Cmd.exe correctly and sensibly with examples?




4.) Export the process details from the task manager!


With programs that can read and export the list views, you can specifically export the process details from the task manager to a file! The new task manager in Windows 11, 10, and Beta 12 has numerous columns that contain valuable information about the respective application / process. 

I have described the column selection here:
►►  Check whether an app is running as an administrator!

1. Start as usual ►  GetWindowText (in this case in administrative mode)

2. Activate the option "Read all columns from the list view"

3. Press the "TXT" symbol and keep the mouse button pressed 

4. Hold down the mouse button and drag over the "Details" in the task manager 

5. Release the mouse button when it's over it 

6. And simply export to HTML over the "Globe" character

( ... see animation Image-3 )
 



(Image-3) Export process list from task manager under MS Windows OS!
Export process list from task manager on MS Windows OS!

-
▲ Back to the top ▲




 



FAQ 125: Updated on: 31 May 2022 15:18 Windows
Windows-Console

Optimize drives about the command prompt on MS Windows OS!


Yes, and its easy to optimize drives on Windows 11, 10, from the command prompt using the defrag command Everyone probably knows the drive optimization
Windows-Console

Generate file hash via command prompt!


Sometimes you need the SHA value of a file, in the command prompt you can create a file hash under Windows 11, 10, Hash algorithms: MD2 MD4 MD5 SHA1
Windows-Console

Adjust lock screen duration from command prompt!


Adjust lock screen duration from command prompt is a little-known option on Windows 11, 10, and MS Server OS   Content: 1. The lock screen display
Windows-Console

Directly open command prompt in each folder!


Here is the solution to open the command prompt directly in each folder without much effort on all Windows 11, 10, and MS Server operating systems  
Windows-Console

Find out programs that start with Windows via the command prompt?


You can find out programs that start with Windows via the classic command prompt on all MS Windows OS Everyone probably knows the practical ►  Autostart
Windows-Console

Change directory or drive in command prompt!


Sometimes you just need to change directory or even drive in Command Prompt on all MS Windows Desktop and Server OS Everyone probably knows how easy it
Windows-Console

Which programs access the Internet cmd.exe command!


Sometimes you just want to see what programs are accessing the internet, luckily you can do that from the classic command prompt with netstat 1. Show

»»

  My question is not there in the FAQ
Asked questions on this answer:
Keywords: windows, console, export, list, running, processes, text, file, with, easy, using, command, prompt, exporting, Questions, Answers, Software




    

  + Freeware
  + Order on the PC
  + File management
  + Automation
  + Office Tools
  + PC testing tools
  + Decoration and fun
  + Desktop-Clocks

  + SoftwareOK Pages
  + Micro Staff
  + Freeware-1
  + Freeware-2
  + Freeware-3
  + FAQ
  + Downloads

  + Top
  + Desktop-OK
  + The Quad Explorer
  + Don't Sleep
  + Win-Scan-2-PDF
  + Quick-Text-Past
  + Print Folder Tree
  + Find Same Images
  + Experience-Index-OK
  + Font-View-OK


  + Freeware
  + QuickTextPaste
  + DesktopNoteOK
  + ShortDoorNote
  + AutoHideDesktopIcons
  + BlankAndSecure
  + AlwaysMouseWheel
  + NewFileTime
  + DesktopClock3D
  + PointerStick
  + PAD-s


Home | Thanks | Contact | Link me | FAQ | Windows 2021 | Windows 10 | English-AV | Impressum | Translate | PayPal | PAD-s

 © 2023 by Nenad Hrg softwareok.de • softwareok.com • softwareok.com • softwareok.eu
0.062


► Quick Memory Test OK for Windows 11, 10, 8.1, ... and MS Server OS! ◄

► Set printer output tray under Windows desktop and server! ◄

► Activate the new on-screen keyboard in Windows 11 via the taskbar? ◄

This website uses cookies to ensure you get the best experience on our website more Infos & Privacy Policy
....