if you type the command in, you have more control over what's executed (and how) than when you drag a file icon into the command line window.
if we can't dissuade you from using a GUI for executing your programs anyway :-) - then you should take it farther and use an IDE (integrated development environment) like PADRE