I see that you have discovered a useful tool in this thread; however I'll also mention my batch file, flac-verify.bat. As normal, drag a folder or file onto the icon to run.
I slightly modified this file (I was learning batch today) to accept multiple files as input, not just a single file or folder. Here's the section I modified -
REM Check whether the parameter is a single file or a folder
:getfiles
IF %1""=="" GOTO endfiles
IF %~z1 EQU 0 (CALL :FolderAction %1) ELSE (CALL :FileAction %1)
shift
GOTO getfiles
:endfiles
This works.
However, this line does not (skips right to label :endfiles) -
IF "%1"=="" GOTO endfiles
Can someone tell me why? That line is practically right out of the ntcmds.chm helpfile under the 'shift' command -
Examples
The following batch file, Mycopy.bat, shows how to use shift with any number of batch parameters. It copies a list of files to a specific directory. The batch parameters are represented by the directory and file name arguments.
@echo off
rem MYCOPY.BAT copies any number of files
rem to a directory.
rem The command uses the following syntax:
rem mycopy dir file1 file2 ...
set todir=%1
:getfile
shift
if "%1"=="" goto end
copy %1 %todir%
goto getfile
:end
set todir=
echo All done