I am pretty new to C programming. I've taken a couple college classes. I have been tasked by work to develop a program that first move files from folder 1 to folder 2, then copies files from folder 2 to a folder on the server. I have done this by using plain dos commands to do this. I've even added a sleep command to delay the next command. Pretty Easy.
Now I was asked to add error prevention to this by counting the number of *.cgm files and *.xml files in a specified folder to a variable. I am able to do this through the following dos command: dir /a "I:" |find /c /v "" , but I'm not able to get the counted number to a variable.
The second part is to parse an outputed text file and then move the files based to a specified folder based on the text file. I haven't even decided to task this part yet. One step at a time.