Hi,
I need help in
VB.net.
I have a folder say "d:\test".
sort the files based on the "Time Modified"
At regular intervals this program should run so that copy all the files in that folder to another folder say "c:\temp". And should write the last filename and its timestamp in a text file.
The next time when the program runs, It should copy only files which are after the last filename that is updated in the text file. Now I should note the lastfilename in the text file.
EXAMPLE:
d:\test
filename TimeModified
1.txt 30, 2004, 12:36:22 AM
2.txt 30, 2004, 12:30.22 AM
3.txt 30, 2004, 12:29.22 AM
4.txt 30, 2004, 12:29.22 AM
When the Program runs at 30,2004, 12:30.24 AM
the program should copy only the following files to "c:\test"
2.txt 30, 2004, 12:30.22 AM
3.txt 30, 2004, 12:29.22 AM
4.txt 30, 2004, 12:29.22 AM
and should write to a text file last file name "2.txt" and its Timestamp " 12:30.22 AM"
Now the 1.txt will come fall into the folder "d:\test" at 30, 2004, 12:36:22 AM
When the program runs again say at 30, 2004, 12.37.00 AM it should copy only
1.txt 30, 2004, 12:36:22 AM
and should write the lastfilename as 1.txt and its timestamp as 12:36:22 AM
PLEASE HELP PLEASE HELP PLEASE HELP PLEASE HELP PLEASE HELP