Forum posts for WmiPrvSE.exe

CSV formatting in batch files

I have a CSV file with many lines in it like:


'wmiprvse.exe','3596','Console','0','5,632 K','Running','NT AUTHORITYNETWORK SERVICE','0:00:00','N/A'


and want to change those lines to:


wmiprvse.exe,NT AUTHORITYNETWORK SERVICE,N/A


What's the best way to do it?



I've the following (using cat and sed) so far:

cat myfile | sed -e '1,2d;s/'*//g;s/,.*,.*,.*,.*,.*,(.*),.*,(.*)/,1,2/'


But it doesn't work properly, any advices?

View complete forum thread with replies

Other posts related to WmiPrvSE.exe

See Related Forum Messages: Follow the Links Below to View Complete Thread

Pipe answer from tasklist to check mem usage of process and kill if exceeding threshold
SQL Server 2008 R2 - Can't open a connection
Want to script Windows WMI (wmiprvse.exe) to release handle on file
Parse a task list
WMIPRVSE needs to be run under network services by default
Why is a WPF TextBox sending wmiprvse.exe out of control?
CSV formatting in batch files

What is the carbon footprint of your coffee?

Is it low? Is it high? Can this things really kill the planet Earth? Maybe the answer will surprise you. Maybe not.