Category Archives: Monad

MSH: Script to Search Files Checked into Team Foundation Version Control

Scripts like this, no matter what version control system you use, are very handy.  This particular one is designed to work with Microsoft’s Team Foundation Version Control.  It search recursively from whatever directory you run it from.   # ———————————————————————# … Continue reading

Posted in Monad | Leave a comment

MSH: New Script Center on MSDN

Check out the MSH Script Center on the MSDN web site.  It looks to be a promising collection of very handy scripts.

Posted in Monad | Leave a comment

MSH: Some Handy Team Foundation Aliases

Microsoft’s Visual Studio Team System Team Foundation Version Control (that’s a mouthful) comes with a handy command line interface which is a life saver for allowing TFVC to be scripted. The utility you use is called TF.EXE.  You use it … Continue reading

Posted in Monad | Leave a comment

MSH: Script to Import File Version History into Team Foundation Version Control

We have some projects on an older version control product called Hewlett-Packard SoftbenchCM.  It is basically networked RCS.  In order to migrate our file history into Team Foundation version control I wrote a MSH script to do the heavy lifting.  In principle it is … Continue reading

Posted in Monad | Leave a comment

MSH: Get Extended Properties of a File

If you right click on an image file in Windows explorer and then go to the Summary tab you will see some handy properties listed there like the image’s width, height and bit depth.  Wouldn’t it be handy to be … Continue reading

Posted in Monad | 6 Comments

MSH: Open MSH Prompt Here Toy

Like the Windows XP Power Toy "Open Command Window Here", this utility installs a context menu item into the Windows Explorer context menu for drives and folders.  The install is a very simple affair.  It verifies that you have MSH installed … Continue reading

Posted in Monad | 1 Comment

MSH: Configure MSH Like a VS 2005 Command Prompt

Assuming you have VS 2005 installed, just add the following to your profile:   # ———————————————————————# Configure the environment to build under VS 2005 / .NET 2.0# ———————————————————————$env:VSINSTALLDIR="${env:ProgramFiles}\Microsoft Visual Studio 8"$env:VCINSTALLDIR="${env:ProgramFiles}\Microsoft Visual Studio 8\VC"$env:DevEnvDir="${env:VSINSTALLDIR}\Common7\IDE"$env:FrameworkSDKDir="${env:VSINSTALLDIR}\SDK\v2.0"   $FrameworkPath=    [Runtime.InteropServices.RuntimeEnvironment]::GetRuntimeDirectory()$env:FrameworkDir=$(parse-path $FrameworkPath -Parent)$env:FrameworkVersion=$(parse-path $FrameworkPath … Continue reading

Posted in Monad | Leave a comment

MSH: What’s with the Codename Monad?

Monad is the codename for Microsoft’s new command shell that is currently in beta.  Monad was coined by Gottfried Leibniz, a German philosopher, mathemetican and statesman from the 17th century.  One of his philosophical works was called Monadology.  Here’s a brief … Continue reading

Posted in Monad | Leave a comment

MSH: Memory hogs function

Here’s a script I use to see which processes are hogging memory.  BTW, I tell MSN Desktop Search my whole hard drive so it usually occupies the #1 slot:   function hogs {    get-process | sort PM -des | select … Continue reading

Posted in Monad | Leave a comment

MSH: Saving and Loading History

MSH keeps track of the various commands you execute.  You can view this history using get-history or the alias ghy.  You can invoke a command in history using invoke-history <number> or the alias ihy <number>.  One of the first things … Continue reading

Posted in Monad | Leave a comment