Phil Leigh;223693 Wrote: > Chris - this sounds great. Any suggestions as to how I could get HDCD to > scan a drive (e.g. E:) and recurse all the subdirectories ? (not being a > script monkey for the last 15 years or so I'm a bit rusty...) > Many Thanks > Phil
I've had essentially zero experience of windows batch file. Some googling suggests that something along the lines of, for /f "usebackq delims=" %f in (`dir /b /s "e:\*.wav"`) do @echo "%f" && @hdcd.exe -i "%f" should do roughly what you want. I also intend to add a -t option (totally silent) option, which will suppress all output to stderr. This would allow you to output a list of hdcd files and nothing else, for /f "usebackq delims=" %f in (`dir /b /s "e:\*.wav"`) do @hdcd.exe -i -t "%f" && echo "%f" If you're files aren't wav, but say FLAC, you'll need to decompress them, and pipe them to hdcd.exe, for /f "usebackq delims=" %f in (`dir /b /s "e:\*.flac"`) do @echo "%f" && @flac [options to decompress to stdout as wav] "%f" | @hdcd.exe -i Finally, the -i option only checks the first second of audio, which may not catch everything. If you're worried, use -a -x instead, which checks the whole file. Chris -- cjk32 ------------------------------------------------------------------------ cjk32's Profile: http://forums.slimdevices.com/member.php?userid=5151 View this thread: http://forums.slimdevices.com/showthread.php?t=32967 _______________________________________________ audiophiles mailing list [email protected] http://lists.slimdevices.com/lists/listinfo/audiophiles
