M
Martin Ho
Two questions:
1.)
I am copying a whole bunch of files from one directory, but I need to
do a if command to copy on those which date of creation is the same
as today's date. How do I do this comparision?
To give you some hint , this is how it could look but this of course
doesn't work, both variables return date with the time signature...I
need to compare only dates between date of creation and local date.
if System.IO.File.GetCreationTime(path to my file) = date.Now then
copy ....
end if
2.)
How I would go about deleting all files that are 4 weeks (28 days)
older than today's date?
Thanks a lot for all your help and time.
Martin
*-----------------------*
Posted at:
www.GroupSrv.com
*-----------------------*
1.)
I am copying a whole bunch of files from one directory, but I need to
do a if command to copy on those which date of creation is the same
as today's date. How do I do this comparision?
To give you some hint , this is how it could look but this of course
doesn't work, both variables return date with the time signature...I
need to compare only dates between date of creation and local date.
if System.IO.File.GetCreationTime(path to my file) = date.Now then
copy ....
end if
2.)
How I would go about deleting all files that are 4 weeks (28 days)
older than today's date?
Thanks a lot for all your help and time.
Martin
*-----------------------*
Posted at:
www.GroupSrv.com
*-----------------------*