Created
September 30, 2015 13:02
-
-
Save cbuck/fcdf465434f7e57e61da to your computer and use it in GitHub Desktop.
SORT AUDIO INTO CATS VIA CSV
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
setlocal enabledelayedexpansion | |
SET PATHA=F:\SOURCE | |
SET PATHB=F:\DESTINATION | |
SET CALLS=XXXX | |
SET /A Counter1=1 | |
SET /A Counter2=9999 | |
ECHO STARTING STATION %CALLS% | |
TIMEOUT 5 | |
FOR /F "eol=; tokens=1,2,3,4* delims=^" %%a in (SORT_FILES\%CALLS%_SORT.csv) do ( | |
ECHO Moving file: %%a | |
echo MOVE /Y "%PATHA%\%CALLS%\%%b\%%a" "%PATHB%\%CALLS%\%%c\%%a" | |
MOVE /Y "%PATHA%\%CALLS%\%%b\%%a" "%PATHB%\%CALLS%\%%c\%%a" | |
ECHO WRKS Files copied: !Counter1! | |
SET /A Counter1+=1 | |
SET /A Counter2-=1 | |
ECHO Files to go: !Counter2! | |
ECHO. | |
CLS | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment