I have a project that should process all .txt files within a directory. The path to the files should be stated at the time of execution. So if the path is C:\myfiles\, then the execution of the program from the command prompt should be:
catch.exe C:\myfiles\.
However, I am unaware of how to probe the directory to input all .txt files without specifically stating the file name. I can process individual files from the command prompt such as: