@echo off
:again
echo This script will download incident data in 2 steps.
echo Step 1 will attempt to download any previously archived data from your home drive.
echo Step 2 will attempt to download any files from the Live Incident folder.
set /p "incidents=Please enter the Incident Numbers separated by a comma:"
For %%I in (%Incidents%) Do Call :Process %%I
CHOICE /C YN /M "Do you have another Incident you would like to try?"
If %ErrorLevel% Equ 1 Goto :again
Goto :Eof
:Process %1
:: you might do a range check on the Incident no. %1
Echo Processing Incedent # %1
:: while testing
goto :Eof
robocopy "\server1\share\%1" "C:\local-path\%casenum%" *.* /ETA /MOV /E /R:1 /W:1 /MT:3
robocopy "\server2\share\%1" "C:\local-path\%casenum%" *.* /ETA /E /R:1 /W:1 /MT:2
robocopy "\server3\share\%1" "C:\local-path\%casenum%" *.* /ETA /E /R:1 /W:1 /MT:2
Goto :Eof
Se a saída parece ok, remova o goto :eof
seguinte :: while testing