I was hoping I could do this in a Windows batch script, but using it from within C is still neat. Thanks.