mercykamal wrote:
i want to delete a file on particular date please give me the code
If you mean delete files that were created/modified/accessed on a particular date/time, then following script will work.
# script delete.txt
# Get a list of files that were created on a particular date.
var str list ; lf -rn "*" "some folder" ( ($fctime < "20090101130000") AND ($fctime > "20090101120000") > $list
# Delete files one by one
while ($list <> "")
do
var str file ; lex "1" $list > $file
system delete ("\""+$file+"\"")
done
Script is in biterscripting (
http://www.biterscripting.com ) . The above script will delete files created between Jan 1, 2009 12:00 noon, and 1:00 pm. Use $fmtime for modification time, and $fatime for access time.
Patrick