I have multiple ascii files like Total-0100.dat and want to batch process using an executable in another directory.
In short,
I have multiple files with incremnet of 100 or 1000 e.g. Total-001000.dat, Total-02000.dat up to Total-600000.dat. they are in one drive/drictory say A. say: A:\work.
I want to batch process these file by using the executable in my program files of C drive. say: C:\Program Files\Program\run.exe
Finally I store these converted files to another directory. say: A:\work1 I have an initial code, that is not working. I need help in this regard.
I am working in Windows 7...
@echo off
for /l %%i in (1,1,400000) do
"C:\Program Files\Program\run.exe" Total-%%i.dat