Execute a bat file
Posted: Fri Feb 16, 2018 11:31 am
Hello,
I have some problem to execute a bat file. My idea is simple, I wait for 3 files with specific name (I used monitor then hold for files). When the 3 files are here, I used an command executer to start de bat but no way( this bat concatenate the 2 files in 1).
In my folder I have ffmpeg.exe, 2 video files and my bat file.
This bat works in dos command line. My FFastrans command executor is :
%%comspec% /c "C:\Users\ctvf2encode1\Desktop\popo\concat2.bat"
My bat file is like this :
(for %%i in (*.mov) do echo@ file '%%i' ) > list.txt
ffmpeg -f concat -safe 0 -i list.txt -c copy output.mov
del list.txt
I have also tried :
(for %%i in (*.mov) do echo@ file '%%i' ) > C:\Users\ctvf2encode1\Desktop\popo\list.txt
C:\Users\ctvf2encode1\Desktop\popo\ffmpeg -f concat -safe 0 -i list.txt -c copy output.mov
del list.txt
In this last method, I found the list.txt in the popo folder but it is empty. Maybe a problem of relative path ?
If someone can help me it will be really kind.
Thank you
Cheers.
Edit : (I think my list.txt is generated from "c:\windows\sysWOW64" that's why my list is empty). I must find how generate a list from another path.
I have some problem to execute a bat file. My idea is simple, I wait for 3 files with specific name (I used monitor then hold for files). When the 3 files are here, I used an command executer to start de bat but no way( this bat concatenate the 2 files in 1).
In my folder I have ffmpeg.exe, 2 video files and my bat file.
This bat works in dos command line. My FFastrans command executor is :
%%comspec% /c "C:\Users\ctvf2encode1\Desktop\popo\concat2.bat"
My bat file is like this :
(for %%i in (*.mov) do echo@ file '%%i' ) > list.txt
ffmpeg -f concat -safe 0 -i list.txt -c copy output.mov
del list.txt
I have also tried :
(for %%i in (*.mov) do echo@ file '%%i' ) > C:\Users\ctvf2encode1\Desktop\popo\list.txt
C:\Users\ctvf2encode1\Desktop\popo\ffmpeg -f concat -safe 0 -i list.txt -c copy output.mov
del list.txt
In this last method, I found the list.txt in the popo folder but it is empty. Maybe a problem of relative path ?
If someone can help me it will be really kind.
Thank you
Cheers.
Edit : (I think my list.txt is generated from "c:\windows\sysWOW64" that's why my list is empty). I must find how generate a list from another path.