The Mudcat Café TM
Thread #106583 Message #2203202
Posted By: JohnInKansas
27-Nov-07 - 11:47 AM
Thread Name: Tech: Windows command?
Subject: RE: Tech: Windows command?
Good advice from Nick. Don't fix what ain't broke.
If you really want a list of the files that have changed, my suggestion would be just to go to Command prompt, navigate to your My Documents folder, run DIR *.*/s and port/send it to a text file.
You should see the prompt:
C:\My Documents>
You type:
DIR *.*/s >Filelist.txt
Hit enter, and the new file "Filelist.txt" will be created and the directory listing written into it. Open the file C:\My Documents\filelist.txt in Word.
If you use Edit|Replace in Word to replace two spaces with ^t (a tab) the list should break down so that there's a tab at the front of the file date. Clean up by removing extra tabs using Edit|Replace ^t^t by ^t, repeated until no changes are made.
Use Table|Sort, in Options select "separate at tabs," and sort (by date) on the column that has the date in it. Discard (delete) the ones older than you want.
Supplemental lesson plan:
With the list of files that have been changed, you can easily(?)1 delete down to just the file names. Put "COPY " in front of each filename, and a destination "C:\newfolder" after each filename, save as a text file. Change the .txt to .bat and at the command prompt type the filename and hit Enter and all your new files should get copied - but do some careful thinking about how you handle folders and subfolders if you think this looks like fun. You'll need to add folder names onto the front of filenames, source and destination, to keep everything straight in a one-pass copy.
1 It really is fairly easy, although somewhat tedious, to strip the file list down to just file names, but you'll need to know that in Word search and replace:
paragraphs markers are entered as ^p tabs are entered as ^t any number (when you don't care which number) is ^# any character (when you don't care which char) is ^?