Saved Bookmarks
| 1. |
Solve : How doi get the old file ccording to time it was created?? |
|
Answer» Quote from: DIAS de verano on April 08, 2009, 03:08:46 AM /a-d - directory attribute negated (don't include directories in list)/a-d - directory attribute negated (don't include directories in list) + EXPLICIT include hidden&system file(s) Quote from: kishorei on April 08, 2009, 04:09:28 AM How do i move all these files orderly date wise to a specified folder?care to give some example?Test1.txt craeted at 2/4/09 Test2.txt craeted at 3/4/09 Test3.txt craeted at 4/4/09 Test4.txt craeted at 5/4/09 First i want to sort the above files by date wise and move the old file first. Then i want to sort the REMAINING THREE files and move the old file and so on.. CODE: [Select]@echo off & setlocal enabledelayedexpansion for /f "tokens=*" %%a in ('dir/b/od/tc/a-d *.txt') do ( echo. dir/tc "%%a"|find/i ".txt" set/p c=Move %%a (y/n^)? for %%b in (y Y) do if !c!.==%%b. move "%%a" c:\temp\ && echo done ) |
|