How To/
FOR /F "delims=|" %%I IN ('DIR "c:\movies\*.avi" /B /O:D') DO SET NEWEST_FILE=%%I