Well, that should only open the file. But if you used "print" instead of "open" for the second argument to ShellExecute(), then that should print the file.