Edit 3,.
based on aacini's comment, i wrote the following
@echo off
for %%a in ("*.mp4") do echo.>"J:\=Backup Files\testing\%%a.avs"
for %%a in ("*.mp4") do @echo DirectShowSource("%%a.mp4")> %%a.avs
But that had extra .mp4 at the end. so i just delted the .mp4 in above as to get
@echo off
for %%a in ("*.mp4") do echo.>"J:\=Backup Files\testing\%%a.avs"
for %%a in ("*.mp4") do @echo DirectShowSource("%%a")> %%a.avs
does that look ok to everyone?
Edit 2.
I've tried the following.
@echo off
echo.>"J:\=Backup Files\testing\%%a.avs"
@echo DirectShowSource("%%a.mp4")> %%a.avs
That only produces an avs file named %a.avs, and in it, is
DirectShowSource("%a.mp4")
how do i modify this so that it will generate avs for each mp4 files and with the name of the mp4 file appened within the parenthesis on the DirectShowSource command
I need to automatically generate a number of *.avs file which is a text file with its extension changed from txt to avs.
The name of the avs file needs to be the same as another movie file in the folder.
So if you have a movie called
some random movie.mp4
the avs file needs to be named,
some random movie.avs
And the avs file needs to have the following entered in it.
DirectShowSource("some movie name.mp4")
I need to create this type of avs files for many movies in a folder.
I posted this 2 days ago and people put it on hold, so i'm trying it again.
I hope that's not too broad.
Thanks for any help.
This question is still too broad it seems.
Here's an example of something similar.
Create a txt file using batch file in a specific folder
The Op asks how to create text files in a folder.
@echo off
echo.>"d:\testing\dblank.txt"
is one answer given. my problem is that the files needs to have an extension of avs not txt.
Then another posts in the same thread,
@echo off
@echo>"d:\testing\dblank.txt
@echo Writing text to dblank.txt> dblank.txt
To accomplish writing some stuff to the file that's been created. My stuff that needs to be written in the files is
DirectShowSource("some movie name.mp4")
And i need to generate that for all the movies individually with its own names replace the phrase "some movie name"