Advertisement
Io-oI

SUQ1489331

Apr 28th, 2024 (edited)
851
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.66 KB | None | 0 0
  1. @echo off & cd /d "%~dp0"
  2.  
  3. >nul 2>&1 mkdir "%~dp1vgmstream"
  4. title <nul & title vgmstream Decoder
  5.  
  6. set "_out=%~dp1vgmstream\%%%%~nG.wav"
  7. set "_log=%~dp1vgmstream\vgmstream.log"
  8. set "_vgmstream=%~dp0vgmstream-cli.exe"
  9.  
  10. for /f usebackq^delims^= %%G in =;(`
  11.       "dir /b /a:-d "%~dp1*.wav""
  12.     `);= do >>"%_log%" =;(
  13.          echo/[%date:~-10,2%/%date:~-7,2%/%date:~-4,4% @ %time:~0,2%:%time:~3,2%]
  14.          echo/Infile: %%~nxG
  15.          echo/Size: %%~zG bytes
  16.          echo/Codec: WAV
  17.          echo/Outfile: %%~nG.wav
  18.          echo/
  19.         );= && call "%_vgmstream%" "%~dp1%%~nxG" -o "%_out%"
  20.  
  21. "%__AppDir__%timeout.exe" /t 5 | start "" /b notepad "%_log%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement