Most Recently Used file list
Roger Upole
rupole at compaq.net
Sun Jun 25 17:40:45 EDT 2000
You can use COM to get the recent files folder (Usually c:\windows\recent,
but not always.)
import win32com.client
sh = win32com.client.Dispatch('Shell.Application.1')
rcnt = sh.NameSpace(8)
for rcnt_file in rcnt.Items():
print rcnt_file
Note that some applications keep their own recent files list.
Roger Upole
"Toby" <t.harris at robinsons.co.uk> wrote in message
news:961776536.37.0.nnrp-06.c3ad12d2 at news.demon.co.uk...
> I am writing a Python 1.5.2 application which requires a "Most recently
> Used" file list, are there any library routines to help me, or do I have
to
> code from scratch using the registry ? (the app runs under Windows NT 4.0)
>
> Thanks in Advance
>
> Toby
>
>
More information about the Python-list
mailing list