You can't change the behavior of a compiled EXE. If you're running the FoxPro IDE you can specify a command line to open file but even then I don't think you can run one.
However, if this is a custom application you've built you can certainly add a custom command line parameter and check for that commandline, extract a file name, copy the file to disk, compile it and run it on the fly. This is possible to automate pretty easily via code, but there's no way to do this automatically. You could also require an a;readu compiled FXP file or a compiled in file to execute using the same mechanism.
+++ Rick ---
>I have an app that has a .prg like "start_main.prg" set as the startup program in the project.
>
>I'd like to know if there is a way to change that via the command line instead of using the project manager to do it...so if I wanted to change the startup program to "start_main_test.prg" is there a way to do that from command window?
>
>Thanks!