|I have found an old post|
Mechanix2Go March 20, 2008 at 14:09:58 Pacific
This should do the confog.sys
:: copy latest c:\windows\config.xxx to \config.bat
dir /b/o-d config.* > list
> some.d echo n list
>> some.d echo L 105
>> some.d echo e 100 'copy '
>> some.d echo e 10f ' \config.sys'
>> some.d echo rcx
>> some.d echo 1b
>> some.d echo N newcfg.bat
>> some.d echo w
>> some.d echo q
debug < some.d
If at first you don't succeed, you're about average.
I am trying to use this same function to copy the latest image from some directories into a single location.
I would also like to rename this file.
So far I can create a list in order but I dont know how to grab the top line.
dir s/b/o-d *.jpg > list
Any help would be appreciated.