Can someone tell me how to add arguments to the command line in NetBeans 7.0? I see that in earlier versions it would be possible to use the properties of the file - project and run them simply, but in 7.0 it is configured differently. This is special for C. projects. Any help? Thanks, Mike
You need to enclose each additional argument in quotation marks and add them to the end of the Run Run line. By default mine is set to one argument: "$ {OUTPUT_PATH}"
I wanted the program to also accept the port number as a string, so I changed this string to: "$ {OUTPUT_PATH}" "6969"
, , .
Go to the NetBeans File menu
Click " Project Properties "
Click " Run " in the list of categories on the left.
On " Run the command " on the right side add your arguments separated by a ""
eg. "$ {OUTPUT_PATH}" "ABC.txt" "7896" "ASDF"