documents history list

  • Thread starter Thread starter mike
  • Start date Start date
M

mike

Hi,

Is it possible to change the extensions that cause a file to be added
to the
documents history list (i.e. don't add gif,jpg and the like) I only
want .doc .xls .pdf

TIA

mikeh
 
I don't think that's possible.

However, that list is stored under Documents and Settings\{user}\Recent. It
has many more files than show up, but the Documents menu only shows the last
10. If you wrote a batch file to move doc, xls, and pdf files to a temp
location, delete Recent, then copy the entries back, it should do the same
thing. Then put the batch file into the startup folder.

For example, something like
cd "documents and settings\{user}\recent"
move *.doc*.lnk c:\temp\recent
move *.xls*.lnk c:\temp\recent
move *.mdb*.lnk c:\temp\recent
del *.lnk
move c:\temp\recent\*.lnk .

The reason for the doc*.lnk is everything in the Recent folder is a
shortcut. The Documents folder may show the DOC, but the shortcut has
doc.lnk. The reason for the wildcard is some of the shortcuts may have
spaced after the doc extension.

Also, there is a dot after the last move statement. That tells it to move
the files to where you are now, which is the Recent folder, without having
to retype it.

I don't know how to set the {user} name to a variable, so you may have to
make multiple files and put one in each persons Startup folder. If you, or
someone else, knows how to make the variable, you can make one copy of the
file and put it into the Allusers startup folder.

Good luck.
 
Hi mikeh,

For the file extensions in question... If the FTA_NoRecentDocs attribute does not
already exist, and if you do not run any applications that programmatically change
the attribute, then you should be able to prevent files of that type from being added
to the Recent Documents folder by editing the registry.

For example, on my computer, for JPEG Image (jpegfile), the above criteria is true.
Therefore, if I perform the following steps JPGs are not added to the Recent
Documents folder for any user on the computer. The same can be said for GIF
Image [HKEY_CLASSES_ROOT\giffile]

- Click Start, click Run, type the following command and click OK: regedit
- In the left-pane select the following key: HKEY_CLASSES_ROOT\jpegfile
- In the right-pane choose Edit | New | DWORD value
- Change the assigned name (New Value #1) to EditFlags
- Double-click EditFlags and in the Value Data box enter: 100000

If the FTA_NoRecentDocs attribute (EditFlags value) already exist, and/or you would
like to prevent files of certain types from being added to the Recent Documents
folder for your User Profile only, repost with details such as the exact registry Key
Name and EditFlags data.

Before you edit the registry I recommend that you understand how to backup, edit and
restore the registry. For more information see the following Microsoft Knowledge
Base Article and/or Registry FAQ. In particular, I suggest that you export the
registry key before you edit it.

KB322755 - HOW TO: Backup, Edit, and Restore the Registry in Windows 2000
http://support.microsoft.com/?scid=322755

Windows Registry Guide - Windows Registry FAQ
http://www.winguides.com/article.php?id=1&guide=registry

--
Carrie Garth, Microsoft MVP for Windows 2000
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- c x g

: "mike" <mjholmes AT dialstart DOT net>
: Wrote in message : Sent: Thursday, October 09, 2003 12:12 PM
:
: Is it possible to change the extensions that cause a file to be added
: to the : documents history list (i.e. don't add gif,jpg and the like) I only
: want .doc .xls .pdf
:
: TIA
:
: mikeh
 
Back
Top