Showing results for July 2007 - Developer Support

Jul 9, 2007
0
0

How to sort the console output of a hashtable in PowerShell

Andrew Arnott
Andrew Arnott

Hashtables are inherently unsorted, but when you're printing a hashtable's contents to the console, it can certainly be helpful to sort its contents by key.  Although it's not obvious, the way to do it is pretty easy. Let's start with defining a hashtable and play with it until it's obviously unsorted. Great. Now let's sort it: Ergh! Wh...

andarnoPowerShell
Jul 9, 2007
0
0

Getting doskey macros to work in PowerShell

Andrew Arnott
Andrew Arnott

As much as I love to work with PowerShell, it was hard to give up the doskey macros I had defined for CMD.exe.  But I just found out that doskey can work all its magic for PowerShell too, so here's the trick... Doskey defaults to working only with cmd.exe, but by passing the /exename= parameter to it, you can set macros for PowerShell as we...

andarnoPowerShell
Jul 2, 2007
0
0

How to (not) write an especially precarious app on .NET (Compact Framework)

Andrew Arnott
Andrew Arnott

As the .NET Compact Framework developers work to add features, fix bugs, and refactor code, we often have to determine whether a given change could break existing customer code.  The ideal is that NetCF 3.5 will run all apps that ran on NetCF 2.0 and 1.0.  We run hundreds of apps and many, many tests before shipping each product to check ...

andarno.NETNetCF