Copy files from One Media Server to the other(s)
This script will copy only later modifed files from A sever to B server.
: Gerard O'Rourke : 20/08/2016 : Copy Audio Files from A to B side @echo off cls echo ************************************* echo * Warning this file will copy files * echo * from the A side to B side server * echo * Only Later Modified files will be * echo * copied * echo ************************************* echo. set confirm=N set /P confirm=Do you want to proceed and copy Media Files from A to B side? if "%confirm%" == "Y" goto proceed if "%confirm%" == "y" goto proceed goto donotproceed :donotproceed echo File Copy aborted!!! echo No files copied. pause exit :proceed echo Reviewing files... echo Files Copied will be listed below: echo. rem @echo on XCOPY \\ucce-cvp-1a\c$\inetpub\wwwroot\en-us \\ucce-cvp-1b\c$\inetpub\wwwroot\en-us /S /D pause
Check WAV file Stats
: Gerard O'Rourke : 12/07/2017 : Check Audio Files @echo off cls set CHECKFOLDER="C:\inetpub\wwwroot\" set PATH=%PATH%;C:\X-Support\Utilities\sox\ set OUTPUTFOLDER="C:\X-Support\CVP Scripts" : Setting a Timestamp variable which can be used in a batch file FOR /f "tokens=1-4 delims=/ " %%A IN ('date /t') DO ( set nday=%%A set nmonth=%%B set nyear=%%C ) set SORTDATE=%nyear%%nmonth%%nday% FOR /f "tokens=1-2 delims=: " %%A IN ('time /t') DO ( set hour=%%A set min=%%B ) set SORTTIME=%hour%%min% set TIMESTAMP=%sortdate%-%sorttime% cls :Check Files cd %CHECKFOLDER% echo Checking files in FOLDER %CHECKFOLDER% now. echo Please wait. echo. echo|set /p="Checking" FOR /R . %%i IN ("*.wav") DO ( sox --i "%%i" >> %OUTPUTFOLDER%\AudioDetailLog-%sortdate%-%sorttime%.txt echo|set /p="." ) echo. pause exit