Troy
Code: Select all
@REM Set this next line to where you want your output files:
@SET outdir=e:\video\
@REM No further changes should be needed below for VLC 0.9.8a
@SET infile=%1
@SET infile=%infile:"=%
@FOR /F "delims=" %%i in ("%infile%") do SET filename=%%~ni
@SET outfile=%outdir%%filename%.wmv
"C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" -vvv --sout="#transcode{vcodec=WMV2,vb=750,width=320,canvas-height=240,acodec=wma,ab=128,channels=2}:duplicate{dst=std{access=file,mux=asf,dst=%outfile%}}" "%infile%" --play-and-exit
pause