Hello, I am looking for a script to display all the recent files/docs used or just opened. Can you point me somewhere, thanks.
recent
Started by
Babis
, Nov 22 2007 12:24 PM
10 replies to this topic
#1
-
Posted 22 November 2007 - 12:24 PM
Hello, I am looking for a script to display all the recent files/docs used or just opened. Can you point me somewhere, thanks.
Bump
#2
-
Posted 27 November 2007 - 06:48 AM
Thanks BoBo" but I was expecting something more thorough, like to browse at: C:\documents and Settings\USER\recent but to a virtual collection of these files, from where I can see their actual locations on my PC.
Therefore I asked if any script was available, because I searched and couldn't find anything
Therefore I asked if any script was available, because I searched and couldn't find anything
#4
-
Posted 27 November 2007 - 12:19 PM
I had some time on my hands this evening, so I threw a little code together to get you started. I think this is the basic idea you were looking for.
#SingleInstance force #NoTrayIcon #NoEnv EnvGet,UserProfile,UserProfile EnvGet,SystemRoot,SystemRoot SetBatchLines, -1 Gui,Add,ListView,r20 w750 Grid gClick ,Name|Path|Modified|Parameters IL:=IL_Create(20) LV_SetImageList(IL,1) Loop,%UserProfile%\Recent\*.lnk { FileGetTime,time FormatTime,time,%time%,h:mm:ss MM/dd/yy FileGetShortcut,%A_LoopFileLongPath%,path,,params SplitPath,path,name,,ext RegRead,filetype,HKCR,.%ext% RegRead,iconpath,HKCR,%filetype%\DefaultIcon StringSplit,icon,iconpath,`, StringReplace,icon1,icon1,`%SystemRoot`%,%SystemRoot% ILnum:=IL_Add(IL,icon1,icon2) LV_Add("Icon" ILnum,name,path,time,params) } LV_ModifyCol() LV_ModifyCol(4,0) Gui,Show,,%UserProfile%\Recent return GuiClose: ExitApp Click: If A_GuiEvent=DoubleClick { LV_GetText(path,A_EventInfo,2) LV_GetText(params,A_EventInfo,4) If params params="%params%" SplitPath,path,,dir Run,%path% %params%,%dir% }
#5
-
Posted 28 November 2007 - 02:41 AM
Thats very nice from you, thanks a lot. How can I add a column with date/time? Also it seems to take about 3-4 seconds to launch in a dual core PC, how can I improve launch time?
Thanks again.
Thanks again.
#6
-
Posted 28 November 2007 - 06:36 AM
I updated the script to address both of your questions.
Regards.
Regards.
#7
-
Posted 29 November 2007 - 01:02 AM
Why not simply:
jaco0646's script doesn't seem to work at all for me, perhaps because I'm on Vista.
EnvGet, UserProfile, USERPROFILE Run, %UserProfile%\Recent:?:
jaco0646's script doesn't seem to work at all for me, perhaps because I'm on Vista.
#8
-
Posted 29 November 2007 - 04:13 AM
I updated the script to address both of your questions.
Regards.
Thanks very much again.
#9
-
Posted 29 November 2007 - 06:53 AM
Why not simply:
EnvGet, UserProfile, USERPROFILE Run, %UserProfile%\Recent:?:
jaco0646's script doesn't seem to work at all for me, perhaps because I'm on Vista.
There is a simpler way too:
c:\documents and Settings\USERNAME\recent
#10
-
Posted 29 November 2007 - 06:54 AM
USERPROFILE = c:\documents and Settings\USERNAME
Assuming you meant to "hard-code" USERNAME, it may be simpler, but it isn't as portable. %USERPROFILE% should always reflect the current user's folder. (I used EnvGet because new scripts have #NoEnv by default.)
Assuming you meant to "hard-code" USERNAME, it may be simpler, but it isn't as portable. %USERPROFILE% should always reflect the current user's folder. (I used EnvGet because new scripts have #NoEnv by default.)
#11
-
Posted 29 November 2007 - 10:38 AM