For Example: I’m running a small program in: Pascal called libusers
When the program is run it needs two input files from the user and does some comparison and outputs the result in a text file
So the at Dos prompt I will do the following:
C:\> pascal libusers -i <file-1> -i <File-2> -o <finalusers.txt>
At present I have to manually type the name of the files everytime I run the program. I want to know if there is a way that I can create a batch file which can automatically pick up the files from a folder and pass them as input to the above program.
The files that I input manually sit in a folder with other files and they all have the same name – I want the batch file to pick the most recent files from that folder.