Hey Github community, I am very new to programming/coding and this is my very first question. I'll try my best to explain my problem (sry for my english). I want to create a batch script which selects the oldest file in a folder, renames it, moves it to another folder and renames it again. Another way to explain it: - I have a folder with 15 files in it - The oldest file is called "orange" - I want the script to rename the "orange" file - Now moving the file to another folder and finally rename it again I got this so far from somewhere else but I dont know if it works I just saved it so I have at least something to show.. @echo off cd c:\Test for /F "delims=" %%a in ('dir /B /A:-D /O:D /T:W') do ( move "%%a" C:\Another\Location goto continue ) :continue I hope you can understand this. Any help will be grateful. Thanks!
... View more