QUOTE
Originally posted by Garf
The error is just 'Syntaxis Error'. I'm on WinME. I already renamed them to .bat files.
At a guess, you're using a switch or command that isn't supported by WinME.
I rebooted into Win98 and you're right, "for" doesn't support the /D switch there. And without it, it doesn't pick up directories.
Case beat me to it, but in case anyone's feeling masochistic here's a vbscript alternative
gain.vbs:
CODE
'-------------------'
' Parental Advisory '
option explicit '
'-------------------'
dim oFSO, oShell
set oFSO = CreateObject("scripting.filesystemobject")
set oShell = CreateObject("wscript.shell")
ScanFolder(".")
function ScanFolder(byVal sPath)
dim oFolder, oFC, oEntity
set oFolder = oFSO.GetFolder(sPath)
set oFC = oFolder.SubFolders
for each oEntity in oFC
ScanFolder(oEntity.Path)
next
set oFC = oFolder.Files
for each oEntity in oFC
if lcase(right(oEntity.Name, 4)) = ".mpc" then
oShell.Run "%comspec% /c replaygain.exe --auto """ & sPath & """", 1, true
exit for
end if
next
end function
Make a batch file something like this:
gainall.bat
CODE
@wscript x:path_to_gain.vbsgain.vbs
and run from the directory where you want to start