Media And Microcode
Microcode. Movies. Music. Games. Personal Musings. - James Brundage's Personal Blog
Translate This Page
Translate this page
Fun With Parameter Binding
Scripting The Web
Windows Desktop Search
Windows Media Center
Browse by Tags
Media And Microcode
Tagged Content List
Today I learned a little bit about how to get to some of the data stored within special shell folders. You can get a list of all of the easy-to-get-to special folders here . I noticed one folder in particular that a bunch of systems administrators I know want to read, and that’s the Nearby...
5 Jan 2010
Microcode: PowerShell + XNA: New-SpriteFont
As I said in a previous post, I've started to explore the wild world of XNA . XNA just released version 3, which allows you to make games for Windows, Xbox, and Zune. The SDK is free, and you can download it here . The last post introduced Get-Font , a quick function that lets me see what fonts are on...
24 Dec 2008
Microcode: PowerShell Scripting Tricks: Get-Font
I've started to explore the wild world of XNA . XNA just released version 3, which allows you to make games for Windows, Xbox, and Zune. The SDK is free, and you can download it here . It comes with a nifty little platformer game (think a 3-screen Super Mario Brothers), which helps a lot with the process...
24 Dec 2008
Microcode: PowerShell Scripting Tricks: Scripting the Web (Part 3) (Resolve-Link, Get-WebPageLink)
The first post in this series was learning to crawl. I introduced Get-Web , which allows you to use System.Net.Webclient to download web sites in a variety of ways. The next post was learning to walk. I showed us Get-MarkupTag , which helps coerce parts of the web into XML. Now we can start to really...
12 Dec 2008
Microcode: PowerShell Scripting Tricks: Scripting The Web (Part 2) (Get-MarkupTag)
The first post about scripting the was a lot of waxing philosophical but little about how to extract data and give it form. There are several approaches, with various difficulties. I could build a full HTML parser and walk though object models, or I could use the object model of IE. Since I personally...
8 Dec 2008
Microcode: PowerShell Scripting Tricks: Scripting The Web (Part 1) (Get-Web)
Several of the last posts have tackled how to take the wild world of data and start to turn it into PowerShell objects, so that it’s easier to make heads or tails out of it. Once all of that data is in a form that PowerShell can use more effectively in the object pipeline, you can use PowerShell...
30 Nov 2008
Microcode: PowerShell Scripting Tricks: More Joy of Hashtables (with Get-HashtableAsObject)
I recently did two different "in depth" posts. One on The Joy Of Hashtables and another on Select-Object versus Add-Member . At the end of Select-Object vs Add-Member, I hinted at more convenient ways to write objects that used Script Properties. Script Properties are particularly...
29 Nov 2008
Microcode: PowerShell Scripting Tricks: The Joy of using Hashtables with Windows PowerShell
PowerShell is full of nice little touches. While some of these touches are easy to run across, like Get-Command and Get-Help, there are also a lot of little ones that are very small changes that make working with some parts of PowerShell (and .NET) a whole lot easier. One area that's got a lot of little...
27 Nov 2008
Microcode: Exploring More of .NET with Get-Assembly
In a previous post, I introduced a function called Get-Type , which allows you to see all of the types currently loaded by .NET. What it doesn't do is help you find assemblies, the DLL files containing new types. So while there might be 19000-odd types loaded when I launch the Windows PowerShell...
7 Nov 2008
Microcode: PowerShell Scripting Tricks - Exploring .NET Types with a Get-Type function and Reflection
There's a simple yet powerful function that nearly everyone on the PowerShell team has written a version of. My version is called Get-Type. It's only a one-liner, but it's an amazing way to explore .NET and it's also an amazing example of some of the things you can do with the object pipeline...
23 Oct 2008
Microcode: Scripting Tricks : Exploring WPF Routed Events with PowerShell
Both WPF and PowerShell are both full of great little touches. One of WPF's nice touches is Routed Events . Routed Events allow you to capture events raised by child controls or parent controls. This can be incredibly useful, because it allows you write less code (which I believe is generally good) by...
19 Oct 2008
Microcode: All About Modules (Windows PowerShell CTP2)
In a previous post , I showed you how you can debug Windows PowerShell cmdlets and providers in Visual Studio and load them up without using installutil.exe. This very briefly touched on using the command Add-Module, in this case, to load up an assembly containing cmdlets. This post explains how to...
9 Aug 2008
Microcode: PowerShell Scripting Trick - Writing functions that use the pipeline or take arguments
I was cleaning up some scripts for posting when I happened upon this minor trick. I had a function that was using $input, a PowerShell v1 feature that allows you to use pipelined values within a function. This enables you to do basic pipelining with PowerShell v1, but it can make code more complex...
26 Jul 2008
Microcode: Cleaning up DVR with Get-RecordedTV
The first simple way we can approach cleaning up DVR is by making the assertion that shows you don't want as much you won't record as often. Suppose you record a movie once, or a game, or the pilot of a really bad TV show. After a month or so it's still on your hard drive, taking up...
20 Jul 2008
Microcode: Cleaning up Get-RecordedTV with Select-Object
In a previous post, I introduced Get-RecordedTV , which was built upon another function, Search-WindowsDesktop . The old version of Get-RecordedTV directly returned the properties related to DVR from Windows Desktop Search, with incredibly long names like 'System.RecordedTV.IsRepeatBroadcast'. ...
20 Jul 2008
Microcode: Getting DVR MetaData with Search-WindowsDesktop
In the previous post , i explained that I was trying to find a way to get at the information about my TV shows, and introduced you to some of the thought process that went into finding out information about my DVR. I then solved the most important portion of my DVR problem (extracting out the metadata...
13 Jul 2008
Microcode: Windows PowerShell, Windows Desktop Search & Problem Solving
In the pursuit of my passion of media (specifically, trying to prune my DVR collection in a more flexible way than Windows Media Center), I started getting curious about how I could get the same kind of data that Windows Explorer has about some RecordedTV. Since I could find it using the Search dialog...
13 Jul 2008
Page 1 of 1 (17 items)
© 2014 Microsoft Corporation.
Privacy & Cookies