I have a batch script that I can drop a file onto and it then converts it to a .dat file using a program. This works fine:
Program.exe "%~1" "some\