home *** CD-ROM | disk | FTP | other *** search
/ The Best of Windows 95.com 1996 September / WIN95_09964.iso / sound / mpw32-5s.zip / MAKELIST.BAT < prev    next >
DOS Batch File  |  1996-07-31  |  1KB  |  47 lines

  1. @echo off
  2. echo.
  3. echo Playlist Creator, Version 1.00
  4. echo Original idea by James Yang
  5. echo.
  6.  
  7. if "%1%" =="/?" goto instruct
  8.  
  9. echo Creating a file "playlist.txt" containing the names of all
  10. echo MPEG Layer II files in the directory %1
  11. cd %1
  12. if exist playlist.txt del playlist.txt 
  13.  
  14.  
  15. if "%2%" == "" goto latest_first
  16. echo.
  17. echo Sort options: %2
  18. dir /B %2 *.mp2 >> playlist.txt
  19. goto done
  20.  
  21. :latest_first
  22. echo.
  23. echo Sort options: /O-D
  24. dir /B /O-D *.mp2 >> playlist.txt
  25.  
  26. :done
  27. echo.
  28. echo Done!
  29.  
  30. goto end
  31.  
  32. :instruct
  33. echo FUNCTION: Creates a list of all files with the extension MP2 in the
  34. echo           mpeg_directory. The output file is named "playlist.txt" and
  35. echo           is placed in the same directory.
  36. echo.
  37. echo    USAGE: makelist mpeg_directory sort_option
  38. echo.
  39. echo           If mpeg_directory is not specified, the current directory is
  40. echo           used. If sort options are not specified, the list is sorted
  41. echo           by date, latest first. For a listing of sort options, type
  42. echo           "dir /?"    
  43.  
  44. :end
  45. echo.
  46.  
  47.