How do I get the versioninformation of all running processes on a Windows Server in Julia?
Like "get-process -filversioninfo" in PowerShell?
I need all processes starting with "d" in a separate text file (again powershell: get-process d* -fileversioninfo >.\output.txt."
Thank you Micha
There might be some native dll calls wrappers in julia, but in this case I would just use run and pipelines to get what you want.
I got a bunch of red text and a thrown error from run when I initially did:
So I suppressed the errors and now I get this:
Tested on Windows 11 with Julia 1.9.2.
See the documentation on
runandpipelineandCmdhere:https://docs.julialang.org/en/v1/manual/running-external-programs/
I like this function, too, but it does need to change
AbstractCmdto support a pipeline inside.https://discourse.julialang.org/t/collecting-all-output-from-shell-commands/15592/7