Hi ****
please I'm a cat that need a help
suppose I have 2 directory:
in DIR1 there are present:
Code:C0001.MXF C0002.MXF C0003.MXF C0004.MXF C0005.MXF
and in DIR2 there are present:
Code:C0001.AVS C0002.AVS C0003.AVS C0004.AVS
and not C0005.AVS
I would like do a batch that find if for each filename contained in DIR1, does exist the correspondand .avs in DIR2 and only if all the files are correspondand --> set a variable TRIGGER from 0 to 1.
In my case does not exist C0005.AVS so there is not correspondace (variable TRIGGER remains to 0)
How can I do?
thanks
+ Reply to Thread
Results 1 to 3 of 3
-
Last edited by marcorocchini; 2nd Oct 2017 at 16:41.
-
windows batch has a specific command to find out if file exists or if it does not exist
if exist "%file%" do .....
if not exist "%file%" do ....
Code:for %%a in ("*.MXF") do if not exist "%DIR2%\%%~na.avs" set "TRIGGER=1"&goto :out :out
Similar Threads
-
Batch MKV title to filename renaming.
By Zareaus in forum Newbie / General discussionsReplies: 7Last Post: 16th May 2018, 04:12 -
batch to get last modified file in a folder?
By marcorocchini in forum Newbie / General discussionsReplies: 4Last Post: 10th Sep 2017, 14:35 -
batch demux video folder
By montevo in forum Newbie / General discussionsReplies: 0Last Post: 16th Jun 2016, 06:56 -
Set the current folder as destination folder and workfolder in a BATCH
By marcorocchini in forum Newbie / General discussionsReplies: 7Last Post: 25th Jun 2014, 07:58 -
batch method of joining MP4s based on filename
By edd1234 in forum EditingReplies: 3Last Post: 30th Oct 2013, 18:39