job to check if file exists
Posted: 16 Nov 2006 20:31
Hello,
We will be getting 2 files every 5 mins (called wap1.txt & wap2) and I have to write a batch job to rename these files to (data1.txt & data2.txt) and move the current files (data1.txt & data2.txt) to another folder
so every 5 mins there will be 2 files
wap1.txt
wap2.txt
check if data1.txt & data2.txt >> IF EXISTS move them to processed with current time stamp
rename wap1.txt & wap2.txt as data1.txt & data2.txt
Can anyone please help me with the file. Thanks a lot.
We will be getting 2 files every 5 mins (called wap1.txt & wap2) and I have to write a batch job to rename these files to (data1.txt & data2.txt) and move the current files (data1.txt & data2.txt) to another folder
so every 5 mins there will be 2 files
wap1.txt
wap2.txt
check if data1.txt & data2.txt >> IF EXISTS move them to processed with current time stamp
rename wap1.txt & wap2.txt as data1.txt & data2.txt
Can anyone please help me with the file. Thanks a lot.