Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29273 Discussions

Access Command Line Parms from Console App

randystonesifer
Beginner
358 Views
I have a console program that gets a filename root from the user. I want to automate testing of the program with multiple input filename roots (i.e., test files) via a .bat file. I do not see a way to have the filename root supplied by the .bat file. So, an alternative would be to have the program access the filename root from the command line string and if one is not found to then prompt the user for the input. Can someone point me toward either:
1. a way to have the program get the filename roots from the .bat file or
2. a way to have the program access the command line string to get the filename root.
Thanks
Randy
0 Kudos
0 Replies
Reply