Batch Rename Files and/or Folders in Windows Command Line

Batch rename files using Windows command line. for /d /r %x in ("*") do pushd "%x" && ren *.eml *.msg && popd Recently restored about 18k emails in various folders from a PST file which exports as an .MSG formatted file. I then reconverted those .MSG to .EML format. Now, the mail server I'm using requires .MSG extension but .EML format (go figure) so I had to rename all these suckers. Easiest way was with some command line kung-fu. Luckily the ren *.eml *.msg works otherwise this would have been Continue reading →

Few notes on vim diff

Start up diff: vimdiff or vim -d (requires full install not vim-tiny) If you load up two files in splits (:vs or :sp), you can do :diffthis on each window and achieve a diff of files that were already loaded in buffers :diffoff can be used to turn off the diff mode. do - Get changes from other window into the current window. dp - Put the changes from current window into the other window. ]c - Jump to the next change. [c - Jump to the previous change. Ctrl W + Ctrl W - Switch to the other split Continue reading →

BIND DNS Security Hole Workaround

There has been a recent discovery that affects BIND DNS servers. A nameserver can be locked up if it can be induced to load a specially crafted combination of resource records.  CVE-2012-5166 To check your version, issue: named -v Affected BIND DNS server versions: 9.2.x -> 9.6.x 9.4-ESV->9.4-ESV-R5-P1 9.6-ESV->9.6-ESV-R7-P3 9.7.0->9.7.6-P3 9.8.0->9.8.3-P3 9.9.0->9.9.1-P3 Upgrading to one of the following corrects the problem 9.7.7 9.7.6-P4 9.6-ESV-R8 9.6-ESV-R7-P4 9.8.4 9.8.3-P4 9.9.2 9.9.1-P4 You Continue reading →

Wallpaper Location in Windows 7

This article was posted more than 1 year ago. Please keep in mind that the information on this page may be outdated, insecure, or just plain wrong today.

This drove me nuts for a few minutes trying to find the location of the Windows 7 wallpaper as I was trying to migrate a profile to a new user and needed to copy the wallpaper as well.
The path, in Windows 7, is:

C:UsersUSERNAMEAppDataRoamingMicrosoftWindowsThemesTranscodedWallpaper.jpg

 

Transparent Command, Putty, Powershell and PuTTY Windows

I modified the code from NothinButNet's Glass project on CodePlex to run continuously and monitor for the following windows: PuTTY (putty.exe) Windows Command Prompt (cmd.exe) Powershell (powershell.exe) Telnet (telnet.exe) There isn't a way to stop it once started other than killing the task (taskkill /f /im glass.exe) or however you choose. You can pass the original parameters to it still if you want by either a shortcut or however you want and it will work so you can set transparency level, etc. Continue reading →

#powershell