PDA

View Full Version : Riptides result.txt combiner script for DPAD



[XC] riptide
10-06-2007, 11:33 AM
This is put into a .bat file and ran if you have multiple DPAD clients on a network and want to combine all the results files for manual uploading. I haven't tried uploading the results yet from the combined file but hopefully it works. :)

Note it needs to be modified to look in your specific DPAD folders...


@echo off
set conti=start1
:pic
echo: RIPTIDES DPAD MULTIPLE RESULT.TXT COMBINER :)
goto %conti%
:start1
echo The file 'results.txt' will be restored.
echo.
echo Press Ctrl C to terminate the batch job or
pause
cls
set conti=res
goto pic
:res
if not exist "results.txt" goto file
echo The file 'results.txt' could not be restored
echo since it is already in the directory.
echo.
goto end
:file
echo The file 'results.txt' is being restored.
echo.
:file1
set file="C:\Documents and Settings\Neil.PRIMARY1.000\Desktop\DPAD\results.tx t"
set conti=file2
goto check
:file2
set file="C:\Documents and Settings\Neil.PRIMARY1.000\Desktop\DPAD2\results.t xt"
set conti=finish
goto check
:check
if exist %file% goto copy
echo File %file% is not found.
echo Please make sure that the file %file% is present in the same directory.
echo.
echo Press Ctrl C to terminate the batch job or
pause
goto check
:copy
echo Restoring %file% ...
if %conti% == file2 goto firstfile
copy /B "results.txt" + %file% "results.txt" > nul
goto %conti%
:firstfile
copy /B %file% "results.txt" > nul
goto %conti%
:finish
cls
set conti=finish1
goto pic
:finish1
echo The file 'results.txt' has been restored.
echo.
:end
echo The slices will be deleted.
echo.
echo Press Ctrl C to keep them or
pause
del "C:\Documents and Settings\Neil.PRIMARY1.000\Desktop\DPAD\results.tx t"
del "C:\Documents and Settings\Neil.PRIMARY1.000\Desktop\DPAD2\results.t xt"
echo.
echo Slices have been deleted...