Hello,
I'm trying to write a bat file which will
go to specific dir ,
read specif.files with dbf, cdx, idx as well as its timestamp,
write dir info to txt file

I have this so far...

@echo off
echo --------------------------------------------------
echo List Dir
echo --------------------------------------------------
rem read from C all with dbf, cdx, idx
dir C:\NEW_REPORTS /tc/on
echo
if not exist D:\NEW_REPORT\DirList mkdir D:\NEW_REPORT\DirList
if not exist D:\NEW_REPORT\DirList\DirList.txt > dir D:\NEW_REPORT\DirList\DirList.txt
echo
echo --------------------------------------------------
DIR C:\NEW_REPORT\ > D:\NEW_REPORT\DirList\DirList.txt
rem read C and write it to D
DIR C:\NEW_REPORT\ >> DIR D:\NEW_REPORT\DirList\DirList.txt
echo
echo
echo --------------------------------------------------
echo - Done! Check status information -
echo --------------------------------------------------
pause


Thank oyu.

Alexis