Wes' Puzzling Blog
... trying to solve the puzzles of .NET
-
Open external links in new tab for IE 7 beta
PetKnep wrote:
-
Using WMI to monitor process creation, deletion and modification in .NET
WMI is a powerful tool and I have just recently discovered some of its power. Previously I though the only way to detect process creation was by creating a windows hook but now I know it is fairly simple to due with .NET using the Windows.Management namespace. Below is simple ProcessWatcher class that has events that are triggered when a process is created, deleted or modified. Enjoy!
-
Pedometer suggestions
As part of my attempt to get in better shape I've decided to purchase a pedometer. I'm a numbers kind of guy and if I see the numbers every day then I'm hoping it will help motivate me to get the suggested 10,000 steps a day. The only problem is I'm trying to decide which pedometer is best suited for my needs.
-
VS 2005 Debugging Tips
Jim Gries has posted a number of excellent "Debugger Tips, Tricks and Tools". Two that I've found very useful and use quite a bit now in my day-to-day debugging are:
-
Added support for Monad scripts to CodeHTMLer
For all those people posting Monad scripts to their blogs you might be interested in making your scripts look better by using CodeHTMLer. Just paste in your code script and select MSH as the language and it will output some stylized HTML that can easily be copied into your blog post. Of course you can use it to post code for most languages. Its what I use to colorize all my code samples.
-
Monad script to convert your doskey macros to Monad functions
Last week I talked about how I wanted to write a script to convert my doskey macros into Monad functions. I used this opportunity to learn about writing scripts in Monad. I must say I'm impressed so far, it has been pretty easy to pickup. The one thing that I kept getting burned by and that I don't care for much is the comparison operators. I don't like using -lt, -gt, etc, I'm too used to <, >. At anyrate here is the code (keep in mind that I'm new to Monad scripting so if I did something wrong go easy on me ;) with that said I'm open to suggestions).
-
Monad Resources
Lee Holmes posted a bunch of good Monad links so I figured I would also post them for others and also for my future reference. Thanks Lee!
-
Monad A.K.A. Microsoft Command Shell
I've finally got some time to start playing with Monad (Microsoft's new command shell). If you are interested the Monad blog has links to download Monad beta2.
-
Finally got my Prius
Finally after 3 months on the waiting list I got my Prius.
-
Substrings in Batch Files
In my last post I stated that batch files need better string support, that was before I realized that you could actually get substrings from variables. Here is an excerpt from the set command documentation (i.e. set /?):