
Quote: Originally Posted by
JimLewandowski

Quote: Originally Posted by
logicearth
Okay...this cannot be that hard. Where the executable for your program is located, hold shift then right click on the folder that contains your executable. Select "Open command window here", type the name of your executable with what ever options and enter.
Almost all console applications require you to open the command line for you to use them, double click on one just runs it with no commands then when it is done the console window closes. It has always worked like that.
Jeebus am I stupid. I didn't enclose it in quotes. Obviously the parsing then stops at \visual. IOW, it was easier to cut paste then navigate all the way to the destination directory.
C:\Users\Jim\documents\visual studio 2010\Projects\test\Release\test.exe
USER ERROR!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
I'd still like to know how to compile something so it doesn't have any debug stuff embedded in it.
I forget where but somewhere along the road in Win9x they decided it would be cool to allow spaces in folder and file names. If a path or param has a space on the command line you have to wrap in double quotes. This:
c:\program file\myprog.exe
will generate "c:\program is not a valid command" blah blah
you have to do
"c:\program files\myprog.exe" with the double quotes.
That's one reason I suggest changing the default directory for the command prompt to the folder in question. Then you can just type:
myprog param1 param2 and hit Enter
if a param is really 2 words or path with a space you still need the double quotes
myprog "param one" "param two"