Mug Funky
29th May 2005, 12:46
hi all. i'm kinda lazy, so i decided to make a batch to create a d2v file and an avs file for any m2v or vob file dragged onto it.
my problem is that if there's a space in the filename being passed, DGindex doesn't accept the input, and my batch stops in its tracks.
i'm pretty new at win2k/XP batching, but here's my attempt so y'all can try to replicate it.
IF NOT EXIST %1 EXIT
"C:\MediaTools\AviSynth 2.5\plugins\dgMPEG\DGIndex.exe" -OM=0 -IF=[%1] -OF=[%~d1%~p1%~n1] -exit
echo # Auto-generated avs script by Sal. > "%~d1%~p1%~n1.avs"
echo.
echo mpeg2source("%~d1%~p1%~n1.d2v") >> "%~d1%~p1%~n1.avs"
there's a couple of other echos in there, but only for filters and stuff (which is irrelevant to this problem).
is this something that can be fixed in my batch, or does it need a (presumably minor) change made to DGindex? i'm using the latest one (1.3.1 beta 6)
my problem is that if there's a space in the filename being passed, DGindex doesn't accept the input, and my batch stops in its tracks.
i'm pretty new at win2k/XP batching, but here's my attempt so y'all can try to replicate it.
IF NOT EXIST %1 EXIT
"C:\MediaTools\AviSynth 2.5\plugins\dgMPEG\DGIndex.exe" -OM=0 -IF=[%1] -OF=[%~d1%~p1%~n1] -exit
echo # Auto-generated avs script by Sal. > "%~d1%~p1%~n1.avs"
echo.
echo mpeg2source("%~d1%~p1%~n1.d2v") >> "%~d1%~p1%~n1.avs"
there's a couple of other echos in there, but only for filters and stuff (which is irrelevant to this problem).
is this something that can be fixed in my batch, or does it need a (presumably minor) change made to DGindex? i'm using the latest one (1.3.1 beta 6)