I have many folders and i need to delete from any folder the oldest files in it, the number of files that i need to delete changed any iteration so i tried to do a for loop that in any iteration do date sort, after the oldest file at the top of the file i do "skip=variable" this variable changed any iteration and it's not work.
Is someone have any idea how to solve it in batch file? Thanks!