The Computer Oracle

What's the easiest way to save Task Manager's Processes tab as a CSV file?

--------------------------------------------------
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------

Music by Eric Matyas
https://www.soundimage.org
Track title: Puzzle Game 2 Looping

--

Chapters
00:00 What'S The Easiest Way To Save Task Manager'S Processes Tab As A Csv File?
00:21 Accepted Answer Score 45
01:06 Answer 2 Score 2
01:21 Thank you

--

Full question
https://superuser.com/questions/209555/w...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#windows #microsoftexcel #taskmanager

#avk47



ACCEPTED ANSWER

Score 45


You can't do this using the task manager itself, but you can use the built-in tasklist command line program to do it. Open a command prompt (cmd.exe) and use the following commands:

  • Type tasklist to output a list of all the currently running processes
  • To output as a csv, type tasklist /FO csv
  • To save the output of the command line to a file, add > filename.csv to the end of the command; for example, tasklist /FO csv > "%userprofile%\desktop\tasks.csv".

For full documentation on the various options for what to output, type tasklist /? into the command prompt.




ANSWER 2

Score 2


One line in CMD

Replace <username> to your user name and run in cmd:

tasklist /v /FO csv > "C:\Users\<username>\Documents\tasks.csv"

For more documentation info go here:

https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/tasklist