Author Topic: Help specifying command-line arguments  (Read 3343 times)

Offline OnlineCop

  • Single posting newcomer
  • *
  • Posts: 4
Help specifying command-line arguments
« on: November 28, 2006, 04:08:40 am »
My code is designed to take file arguments from the command-line as input values as follows:

  myProgram.exe filename1 filename2 ...

I have not seen any recent posts on this, nor have found much in the Wiki that explains how to specify these command-line arguments to my program on execution (and/or debug).

Would someone have either a link to a page that describes how to set these "at runtime" arguments, or know how to do this?

Again, I'm wanting to compile and debug a file, and the file expects "filename" to be input on the command-line as one of its arguments.  Where do I need to go in order to do this?

Thank you!

EDIT:

Sorry, I just found it.  I apologize.

I don't know if you want to keep this up for an FYI for others, or if the moderators would like to remove this topic, but here's where to do it:

Project --> Set Programs' Arguments...
In the "Select Target" window, select the target (in my case, "Debug") then type in the "Program arguments" box: filename (or whatever the command-line arguments should be).

That was a lot easier than I thought it would be  :o

-OnlineCop
« Last Edit: November 28, 2006, 04:19:03 am by OnlineCop »