<asx version="3">
<title>Trailers</title>
<entry><ref href="K:\Trailers\trailer1.mpg" /><title>Trailer1</title></entry>
<entry><ref href="K:\Trailers\trailer2.mpg" /><title>Trailer2</title></entry>
<entry><ref href="K:\Trailers\trailer3.mpg" /><title>Trailer3</title></entry>
<entry><ref href="K:\Trailers\trailer4.mpg" /><title>Trailer4</title></entry>
</asx>
>con echo.
echo ^<asx version="3"^>
echo ^<title^>!FOLDER!^</title^>
echo ^<entry^>^<ref href="%INTRO%" /^>^<title^>Intro^</title^>^</entry^>
echo ^<entry^>^<ref href="%%~dpa!FOLDER!02%%~xa" /^>^<title^>Main Movie^</title^>^</entry^>
echo ^</asx^>
) >"%%~dpa!FOLDER!01.asx">con echo.
echo ^<asx version="3"^>
echo ^<title^>!FOLDER!^</title^>
echo ^<entry^>^<ref href="K:\Trailers\trailer1.mpg" /^>^<title^>Trailer1^</title^>^</entry^>
echo ^<entry^>^<ref href="K:\Trailers\trailer2.mpg" /^>^<title^>Trailer2^</title^>^</entry^>
echo ^<entry^>^<ref href="K:\Trailers\trailer3.mpg" /^>^<title^>Trailer3^</title^>^</entry^>
echo ^<entry^>^<ref href="K:\Trailers\trailer4.mpg" /^>^<title^>Trailer4^</title^>^</entry^>
echo ^</asx^>
) >"%%~dpa!FOLDER!01.asx"daavid1 wrote:Hi Casper,
Thats partly what I want, but the other side of it is some script that could be run daily, or hourly or something that will randomly change the name of some of my trailers so the ASX picks them up.
If all my trailers are named to match the film they represent, such as "28 Days Later_trailer.mpg", the ASX won't pick them up. But if I have an hourly script that randomly renames some of them to 'trailer1.mpg', 'trailer2.mpg' etc. then the ASX will pick up the trailers.
I guess the script could first delete the existing 'trailer1.mpg', 'trailer2.mpg', 'trailer3.mpg' and 'trailer4.mpg', makes copies of 4 random trailers, then rename them to 'trailer1.mpg', 'trailer2.mpg', 'trailer3.mpg' and 'trailer4.mpg'. If i set this to run hourly or whatever, it would mean that nearly everytime i watch a film it would give me different trailers from my collection. Does that explain it better?
Users browsing this forum: No registered users and 1 guest