Stupid Windows Tricks

Here are some CMD tools you probably didn’t think existed:

  • findstr – Like Unix grep
  • tasklist – Like Unix ps
  • taskkill – Like Unix kill

These come for free with recent versions of Windows. You might be wondering why Microsoft chose these names instead of their well-known, pre-existing Unix equivalents? I don’t know for sure, but I suspect this has something to do with it.

Anyway, here’s a nice trick:

C:\>tasklist /m msvcrt.dll

Image Name                     PID Modules
========================= ======== ===============
OUTLOOK.EXE                   3576 MSVCRT.dll
cmd.exe                       2616 msvcrt.dll
vim.exe                       3816 msvcrt.dll
iTunes.exe                    3776 msvcrt.dll
firefox.exe                   2912 msvcrt.dll

Whip that one out next time you can’t delete a directory because some DLL is in-use.


3 Responses to “Stupid Windows Tricks”

  1. 1 Charles H. Grier February 26, 2007 at 8:37 pm

    how do I get rid of msvcrt.exe

  2. 2 Mark February 26, 2007 at 9:07 pm

    I don’t know what msvcrt.EXE is, but msvcrt.DLL is the Microsoft Visual C Runtime. It’s required for programs that were built using Microsoft Visual C/C . You should probably keep it.

  3. 3 Alex March 6, 2007 at 2:50 am

    msvcrt.EXE is a file created by W32/Tilebot-Q Trojan. See

Comments are currently closed.

%d bloggers like this: