home *** CD-ROM | disk | FTP | other *** search
/ Chip 1999 September / Chip_1999-09_cd.bin / sharewar / MP3 / Rc-MP3.box / Rc-MP3.bat < prev    next >
Encoding:
DOS Batch File  |  1999-01-05  |  5.1 KB  |  132 lines

  1. @echo off
  2. ::
  3. :: DO NOT MODIFY THIS FILE!  If you do, at least make a backup copy,
  4. :: but feel free to check it out.
  5. ::
  6. set path=%path%;c:\progra~1\Rc-MP3\
  7. set bitrate=128
  8. set priority=LOWEST
  9. if exist c:\progra~1\Rc-MP3\bitrate.bat call c:\progra~1\Rc-MP3\bitrate.bat
  10. if exist c:\progra~1\Rc-MP3\priority.bat call c:\progra~1\Rc-MP3\priority.bat
  11. echo. You can delete this directory after you've uninstalled RightClick-MP3 > "c:\progra~1\Rc-MP3\ReadMe.txt"
  12. if exist c:\progra~1\Rc-MP3\RcMP3ans.sys c:\progra~1\Rc-MP3\RcMP3dev.com c:\progra~1\Rc-MP3\RcMP3ans.sys
  13. if NOT exist c:\progra~1\Rc-MP3\RcMP3ans.sys goto itsNT
  14. set TheOS=Win95
  15. echo.
  16. echo.       ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄           ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
  17. echo.          http://execpc.com/MrShannon/              █  RightClick-MP3 v1.51  
  18. echo.              MrShannon@execpc.com                  ▀▀▌  * by MrShannon *  ▐▀▀
  19. echo.                                                      ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  20. echo.
  21. echo. 
  22. goto contin
  23. :itsNT
  24. set TheOS=WinNT
  25. echo.       ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄           ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
  26. echo.          http://execpc.com/MrShannon/              █  RightClick-MP3 v1.51  █
  27. echo.              MrShannon@execpc.com                  ▀▀▌  * by MrShannon *  ▐▀▀
  28. echo.                                                      ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  29. echo.
  30. echo.
  31. :contin
  32. set mode=%1
  33. set file=%2
  34. set optn=%3
  35. if %mode%==encode set ext=mp3
  36. if %mode%==decode set ext=wav
  37. set newfile=full
  38. if NOT exist !New-30!.%ext% set newfile=!New-30!.%ext%
  39. if NOT exist !New-29!.%ext% set newfile=!New-29!.%ext%
  40. if NOT exist !New-28!.%ext% set newfile=!New-28!.%ext%
  41. if NOT exist !New-27!.%ext% set newfile=!New-27!.%ext%
  42. if NOT exist !New-26!.%ext% set newfile=!New-26!.%ext%
  43. if NOT exist !New-25!.%ext% set newfile=!New-25!.%ext%
  44. if NOT exist !New-24!.%ext% set newfile=!New-24!.%ext%
  45. if NOT exist !New-23!.%ext% set newfile=!New-23!.%ext%
  46. if NOT exist !New-22!.%ext% set newfile=!New-22!.%ext%
  47. if NOT exist !New-21!.%ext% set newfile=!New-21!.%ext%
  48. if NOT exist !New-20!.%ext% set newfile=!New-20!.%ext%
  49. if NOT exist !New-19!.%ext% set newfile=!New-19!.%ext%
  50. if NOT exist !New-18!.%ext% set newfile=!New-18!.%ext%
  51. if NOT exist !New-17!.%ext% set newfile=!New-17!.%ext%
  52. if NOT exist !New-16!.%ext% set newfile=!New-16!.%ext%
  53. if NOT exist !New-15!.%ext% set newfile=!New-15!.%ext%
  54. if NOT exist !New-14!.%ext% set newfile=!New-14!.%ext%
  55. if NOT exist !New-13!.%ext% set newfile=!New-13!.%ext%
  56. if NOT exist !New-12!.%ext% set newfile=!New-12!.%ext%
  57. if NOT exist !New-11!.%ext% set newfile=!New-11!.%ext%
  58. if NOT exist !New-10!.%ext% set newfile=!New-10!.%ext%
  59. if NOT exist !New-09!.%ext% set newfile=!New-09!.%ext%
  60. if NOT exist !New-07!.%ext% set newfile=!New-08!.%ext%
  61. if NOT exist !New-06!.%ext% set newfile=!New-06!.%ext%
  62. if NOT exist !New-05!.%ext% set newfile=!New-05!.%ext%
  63. if NOT exist !New-04!.%ext% set newfile=!New-04!.%ext%
  64. if NOT exist !New-03!.%ext% set newfile=!New-03!.%ext%
  65. if NOT exist !New-02!.%ext% set newfile=!New-02!.%ext%
  66. if NOT exist !New-01!.%ext% set newfile=!New-01!.%ext%
  67. if NOT exist !New!.%ext% set newfile=!New!.%ext%
  68. if %newfile%==full goto itsfull
  69. goto itsok
  70. :itsfull
  71. if %mode%==encode goto itsok
  72. goto Max
  73. :itsok
  74. if %TheOS%==WinNT goto not95
  75. echo. Ready to %mode% %file%
  76. if %optn%==delcrc echo. and delete the .WAV(s) when finished.
  77. goto finalstp
  78. :not95
  79. echo. Ready to %mode% %file%
  80. if %optn%==delcrc echo. and delete the .WAV(s) when finished.
  81. echo.
  82. :finalstp
  83. if %TheOS%==Win95 echo. 
  84. if %TheOS%==WinNT echo.
  85. if %mode%==encode echo.                                                     Bitrate is.... %bitrate%kbps.
  86. if %mode%==encode echo.                                                     Priority is... %priority%.
  87. if %TheOS%==Win95 echo. 
  88. if %TheOS%==WinNT echo.
  89. echo Press any key to continue or 'X' to eXit.
  90. c:\progra~1\Rc-MP3\getchar.com
  91. if errorlevel 88 if not errorlevel 89 goto end
  92. if errorlevel 120 if not errorlevel 121 goto end
  93. cls
  94. if %mode%==encode goto wavtomp3
  95. echo. Now %mode%ing
  96. echo. %file%
  97. echo. into %newfile%
  98. copy %file% c:\progra~1\Rc-MP3\temp.mpx >nul
  99. call c:\progra~1\Rc-MP3\RcMP3dec.exe c:\progra~1\Rc-MP3\temp.mpx %newfile% -wav
  100. del c:\progra~1\Rc-MP3\temp.mpx >nul
  101. goto check
  102. :wavtomp3
  103. if not exist *.wav goto nowavs
  104. echo. Now %mode%ing
  105. echo. %file%
  106. if %optn%==crc call c:\progra~1\Rc-MP3\Rcmp3enc.exe -%bitrate% -PRIO=%priority% -QUIT %file%
  107. if %optn%==delcrc call c:\progra~1\Rc-MP3\Rcmp3enc.exe -%bitrate% -PRIO=%priority% -QUIT -DELETE %file%
  108. goto end
  109. :check
  110. if NOT exist %newfile% pause
  111. goto end
  112. :Max
  113. echo.
  114. echo.
  115. echo.     I am sorry but you must rename some of the !New-##!.%ext% files bofore I can continue.
  116. echo.
  117. echo.
  118. echo.  Press any key to close this window...
  119. c:\progra~1\Rc-MP3\getchar.com
  120. goto end
  121. :nowavs
  122. echo.
  123. echo.
  124. echo.     No .WAV files were found here to encode.
  125. echo.
  126. echo.
  127. echo.                                        Press any key to close this window...
  128. c:\progra~1\Rc-MP3\getchar.com
  129. goto end
  130. :end
  131. if %TheOS%==Win95 echo 
  132. exit