I am trying to create a batch file for a project, which reads through the files in a directory and runs a command for each file that manipulates a file in some way (from another program). While running the program, it saves each manipulated file to an output folder, with the extension "_updated". How can I do this in my command using a batch file without the extension of the file becoming a part of the file name? for instance, the o/p goes from "Videoa.bin" to "Videoa.bin_updated.bin". How can I fix this? Code below!
@ECHO ON
cd [filename]
SET v=output_folder
mkdir %v%
for %%a in ([path to files]*\.bin) do [command, which takes in the following args:
output file name (the one with the _updated ext),
and input folder(+more)]
PAUSE