i want to delete event log files which is older than 7 days, I shared event log directory as \\server\eventlog now I am trying to get the file date of each file inside the directory and if it is more than 7 days old of current date delete it.

I hope I made it clear now.
_________________________
“I’ll not change you unless you don’t have intention to change yourself” --H:Quran