Saturday, April 25, 2015

[Tech] A couple of useful Windows tools

Hi,

If you're like me, you occasionally have the need of doing Useful Things (TM) on Windows, but you have a Unix-ey background. The GUI just doesn't cut it, so you pull up CMD or, *gasp*, PowerShell. In all probability, you're also like me and CMD is both more familiar to you (from MS-DOS 6.22 days) and more common in your work. I regularly use a product that only works correctly in CMD (well, without some hackage).

Here a couple of tools that have helped make my life easier:

  • RoboCopy has many similarities to rsync. I think it might even have a proper subset of rsync functionality.
  • findstr is vaguely like grep...once you use the right command line arguments. Note that findstr does not know what the crap UCS-2 encoding (or any number of other encodings) is (are). (grep doesn't seem to either.)
  • dir /s /b is just enough like the default output of ls to pipe to findstr and do useful things.
Hopefully that helps someone.

No comments:

Post a Comment