Skip to content

Instantly share code, notes, and snippets.

View docx2pdf.ps1
$documents_path = 'c:\doc2pdf'
$word_app = New-Object -ComObject Word.Application
# This filter will find .doc as well as .docx documents
Get-ChildItem -Path $documents_path -Filter *.doc? | ForEach-Object {
$document = $word_app.Documents.Open($_.FullName)
View unitialized.cs
using System;
using System.Diagnostics;
using System.Runtime.Serialization;
namespace Unitialized
class Program
static void Main(string[] args)

Keybase proof

I hereby claim:

  • I am stevehansen on github.
  • I am stevehansen ( on keybase.
  • I have a public key ASBBMwbQRmOT5pwoLEWG0uv4XwyDFq3k5xTmhTWb1BADjgo

To claim this, I am signing this object: