Batch File creation

Shelha

Honorable
Jun 16, 2013
8
0
10,510
Hello,

I need to create a Batch file that will run the following command:

C:\Program Files (x86)\Folder\Folder\Folder>submitfax.exe /F E:\Folder\Folder\Folder\FaxTest123456789.t01

The problem is that the file located in the E: drive (E:\Folder\Folder\Folder\FaxTest123456789.t01) changes name as new files are dumped into the folder, the batch file will be set up so scheduler will run it at intervals of 15 minutes, the rest of the command remains constant, any help or suggestions will be greatly appreciated.

Cheers!
 
Solution
Shooting from the hip, not guaranteed to work:

Code:
@Echo Off
cd E:\Folder\Folder\Folder\
for %%A in (*.t01) Do "C:\Program Files (x86)\Folder\Folder\Folder\submitfax.exe /F" %%A

Shelha

Honorable
Jun 16, 2013
8
0
10,510

Thank you very much for the answer. I will try it and let you know!!

Cheers!