What code are you using? "program.exe %1" probably is the shell command keys default value for your file type, you just have to enter the path to your exe and make your app interpret the command line.