I am writing an interactive Windows program to load a text file to a database. I am writing the app to run in both interactive and 'automatic' modes, so that I can schedule a regular file upload.
I would like to be able to trigger the app in automatic mode from a DOS shell, so that I can include it in batch files. This would be similar to launching Notepad.exe from the DOS prompt.
The current build of the app will not trigger from DOS, I get "The system cannot execute the specified program".
What do I need to do to make the Windows app launchable from a DOS shell?