I want to write a new file using a batch script. I want to have the bat prompt me for the file name, i think I have that "set /P file=Enter File Name:" then put that name in for the name of the file, and that same name 5 places in the file and save the file as that file name.smil See what I have, I know this is not right but hopefully you can see what I am trying to do.
set /P file=Enter File Name:
<?xml version="1.0" encoding="UTF-8"?>
<smil title="%file%">
<body>
<switch>
<video height="1080" src="%file%-1080.mp4"
systemLanguage="eng" width="1920">
<param name="videoBitrate" value="5000000" valuetype="data"></param>
<param name="audioBitrate" value="320000" valuetype="data"></param>
</video>
<video height="720" src="%file%-720.mp4"
systemLanguage="eng" width="1280">
<param name="videoBitrate" value="3000000" valuetype="data"></param>
<param name="audioBitrate" value="192000" valuetype="data"></param>
</video>
<video height="540" src="%file%-540.mp4"
systemLanguage="eng" width="960">
<param name="videoBitrate" value="1500000" valuetype="data"></param>
<param name="audioBitrate" value="128000" valuetype="data"></param>
</video>
<video height="360" src="%file%-360.mp4"
systemLanguage="eng" width="640">
<param name="videoBitrate" value="750000" valuetype="data"></param>
<param name="audioBitrate" value="96000" valuetype="data"></param>
</video>
</switch>
</body>
</smil>