Este é o script de trabalho:
rem this batch script is used to list all the files hosted newly to a landing directory.
set LandingDir=C:\Documents and Settings\Shivam\Desktop\LandingDir\*.txt
set DateFile=C:\Informatica\PowerCenter8.6.0\server\infa_shared\SrcFiles\DateFile.txt
set Temp_File_List=C:\Informatica\PowerCenter8.6.0\server\infa_shared\SrcFiles\Temp_File_List.txt
set File_List=C:\Informatica\PowerCenter8.6.0\server\infa_shared\SrcFiles\File_List.txt
set /P _PreviousDate=<%DateFile%
xcopy "%LandingDir%" /l /s /d:%_PreviousDate% .>%Temp_File_List%
type "%Temp_File_List%" | findstr /v File>%File_List%
echo %date:~4,2%-%date:~7,2%-%date:~10,4% >%DateFile%