I have a .exe file that takes two parameters when I run it from the command line, as such:
test_app.exe -vid.avi -data.txt
How can I START .exe file through a batch script package and pass these parameters to it?
If I have several .avi and .txt files that I need to transfer to the .exe via START , how can I have a variable that goes through all these files, two for a while? (pairing each .avi with it corresponds to .txt ).
Suppose that each .avi and .txt pair has the same name, but obviously has different extensions.
I need to write something like this:
@ECHO OFF START test_app.exe -vid.avi -data.txt pause
But the parameters must be variables that increase every time a pair of parameters is processed through .exe , so it will cycle through all the files in CWD.
Trying to do this, but does START seem to not work that way?
@echo off for %%a in (*.avi) do ( START Tester.exe -%%a -%%~na.txt ) pause
source share