Naming Your Computers

There's a thread going on at reddit regarding an old FYI RFC about computer naming conventions. This made me think a bit about how I name my machines, and realize I don't really have a convention at all. Or, rather, I've had several over the years ranging from places/characters from...

Have Script, Will Backup

A few days ago, I mentioned I did simple backups using the SyncToy powertool, and mentioned I might try replacing it with Robocopy. The end result is a simple PowerShell script that drives Robocopy. It simply backs up a specific set of directories and my VPC data virtual hard drive...

DLR Notes 2

This time I'm going to talk a bit as to how to implement function calls in the Dynamic Language Runtime. Last time, I mentioned that I had initially had implemented function definitions as simply returning a raw CodeBlockExpression. This works, but it doesn't give you many options to add custom...

DLR Notes 1

One of the first things I tried to get working on my simple programming language was being able to define functions. Initially I started just with global functions, and then with local (i.e. nested) functions. For the most part, this is easy in the DLR. You create a new function...

Building On The DLR

I've been playing for some time now with the Dynamic Language Runtime. At first I started simply playing around with its hosting interfaces, but later I realized I really wanted to check more closely how it worked, so I started building a very simple language on top of it. My...

Backing Stuff Up

Jeff Atwood's post on backup strategies made me reflect on what I was doing myself to keep my data safe. I don't really have a "backup strategy", though I do try to keep a good backup around (and I'm always careful to, for example, backup my laptop when I'm traveling...

PowerShell's Resolve-Path

One of the commands I've found more useful in PowerShell is the resolve-path command, which "interprets the wildcard characters in a path and displays the items and containers at the location specified by the path, such as the files and folders or registry keys and subkeys. The names appear just...

Console

<img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="232" alt="Console" src="/weblog/content/binary/WindowsLiveWriter/Console_C7C1/Console_thumb_1.png" width="300" align="right" border="0" /> I'm a heavy user of the command line on Windows, and for a number of years I've used the open source Console application instead of running plain cmd.exe as my console of choice. I...

Modifying the home in PowerShell

After a long time of procrastinating about it, I finally sat down and started putting together a simple profile script for PowerShell to make it a usable alternative for everyday tasks. It's an excellent shell, but without tweaking it a bit, it can be a bit painful to use at...

PS: Executing string as a command

Recently I was writing a small script for Powershell and I needed to call an external program from my script. However, I wanted to be able to put keep the directory the executable was located in in a variable; you know, like one usually does in regular batch files. After...