Skip to content

Document difference with tasklist on Windows #211

@jameslairdsmith

Description

@jameslairdsmith

I was trying to use ps to track down whether a particular system process was running on Windows or not. I found that I was able to do so by wrapping up tasklist with shell() but the process I was looking for didn't show up in ps::ps(). There are quite a few processes (at least on my machine) which behave similarly (see reprex below). I don't know that much about how system processes are categorised, it might be that there is a good reason for some to appear and not others. If that's the case, then I would suggest documenting what that difference is to avoid confusion.

library(ps)

nrow(read.csv(text = shell("tasklist /fo csv", intern = T)))
#> [1] 353
nrow(ps())
#> [1] 150

Created on 2025-12-08 with reprex v2.1.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions