Archive for December 2008

Change File Associations via Command Line

You can change file type associations in Windows from the command line with 2 simple commands: assoc and ftype. Use assoc to associate a file extension with a file type or check the existing association. File types are defined arbitrarily, you can make up your own if you wish:

C:\>assoc .pdf
.pdf=AcroExch.Document
C:\>assoc .pdf=SomeOther.PDFViewer

Then use ftype to check or set a command line to open those file types with:

C:\>ftype AcroExch.Document
AcroExch.Document="C:\Program Files (x86)\Adobe\Reader 8.0\Reader\AcroRd32.exe" "%1"
C:\>ftype SomeOther.PDFViewer=C:\Program Files\My PDF Viewer\pdfview.exe %1

These commands will edit the system-wide file associations (stored in HKLM). User-set preferences (stored in HKCU) will take precedence over this. These commands also require local admin rights, or need to be run in an elevated context (such as System during a login script, or a RunAs command).

Audit Windows Print Logs with Perl

I’ve had this script floating around for a while. It can take a CSV export of your event log from a Windows machine, and give you a per-user breakdown of print jobs and pages printed, by date.

Continue reading ‘Audit Windows Print Logs with Perl’ »

Lan Party – January 17

You know the drill.

Confirmed list:

Criff & GF, Heath & Leighann, Kyle,  Chris, Eric, Flander, Dave, Bret, Patrick, Murry & Tia, Daryl, maybe Stevie & Fran

‘Tournament’ game will be some old-school FPS, possibly Q3, with some new maps.  I’m tossing up a P4 mobo (no proc or ram) as a prize. Other games will probably be L4D, RA3, and NFS:UC.

Food will be provided, BYOB.

Its winter and parking absolutely sucks. If you’ve got 4WD, I’ll have the right-hand part of the driveway cleared as best I can. If you’re parking on the street, park on the opposite side from the house.

This is turning out larger than expected, so parking will likely be an issue.  Lets try to keep the driveway somewhat clear to begin with so people can pull in and unload their stuff. Street parking may be full.  Might have to end up shuttling some people around.

If you’re crashing at my place, bring a sleeping bag or cot or something, all my sleeping spots are taken.

There’s a good amount of snow expected Saturday. Drive careful.