A quick way to clear your Temp folder in Windows

Posted by Adrian Tue, 23 Jun 2009 20:52:00 GMT

This tip explains how you can easily clear your Temp folder of all files (that are not currently locked).

Open a Command Prompt (this can be found in the Start Menu under Programs, Accessories, or alternatively choose Start -> Run and type cmd (followed by pressing enter)

Type:

rmdir %TEMP% /q/s 

If any files are locked (i.e. they are being used), they will be listed and a message will warn that "The process cannot access the file because it is being used by another process".

If you didn’t get any warnings, your Temp directory was just deleted in its entirety, and you need to recreate it:

md %TEMP% 

And that is the quickest way to delete all temporary files!


It is possible, with a little effort, to get SharePoint 2007 to search inside PDF documents that are added to your libraries. This article explains the configuration changes you need to make on your server to enable this feature.

Acrobat reader

SharePoint uses a Windows feature called Index Server to search documents. Searching inside PDF documents requires an 'IFilter' from Adobe, especially designed to read the PDF file format. Adobe include this filter with their Acrobat PDF reader application. This means that you need to download and install Adobe Acrobat Reader on your SharePoint server. Note that you should try and keep this software up-to-date, as Adobe regularly issue fixes for security vulnerabilities.

http://www.adobe.com/products/reader

SharePoint configuration

There is very little configuration to be done inside SharePoint itself, aside from configuring the search service to index files with the extension .pdf.

You do this in SharePoint 3.0 Central Administration (see the Microsoft Office Server folder in the Start Menu on the server).

You should open the search configuration screen in the Shared Services section. Click File Types, and in the File Types list click Add New. You should enter pdf and click OK.

Registry Changes

Please backup your registry before making any changes

There are two registry keys that you need to change. These will register the Adobe PDF IFilter with the Office Search service.

The values that need to be changed are:

HKEY_LOCAL_MACHINE
SOFTWARE\
  Microsoft\
    Office Server\
      12.0\
        Search\
          Setup\
            ContentIndexCommon\
              Filters\
                Extension\
                  .pdf

HKEY_LOCAL_MACHINE
SOFTWARE\
  Microsoft\
    Shared Tools\
      Web Server Extensions\
        12.0\
          Search\
            Setup\
              ContentIndexCommon\
                Filters\
                  Extension\
                    .pdf

Both values should be changed to:

{E8978DA6-047F-4E3D-9C78-CDBE46041603}

Add the Adobe Program Directory to the System Path

So that the search service can find the DLL which provides the IFilter service, you must add the Adobe Acrobat Reader program directory to the system path.

Right click My Computer > Properties Click Advanced > Environment Variables

In the lower part of the window, scroll down to find the variable Path. Double click on it, and at the end of the ‘Variable value’ add ;C:\Program Files\Adobe\Reader 8.0\Reader

Note the semi-colon – that separates this path from the one before it. Note also that if you installed to a non-default location that you must change this value accordingly.

Restart the Office Search service

To register your changes, you should restart the Office Search service. Open a command shell (Start -> Run -> cmd [press enter]) and type the following commands:

sc stop osearch [press enter]
sc start osearch [press enter]

Finally

If you already have PDF documents in SharePoint that you want to be included in the search, you must Reset all crawled content in Search Settings and then, in Content sources and crawl settings, start a new Full Crawl. These screens are in the SharePoint Central Configuration application’s Shared Services that we used in step 2.


About

We are a small British company that produces business-oriented software and solutions. These articles are a product of our daily work - information that we think might be useful to share. We hope you find them useful.

Our Software

These are some of our products. Several are open source, some are web-based and others are proprietary:

Categories

Archives

Syndicate

ml> ._trackPageview(); } catch(err) {} ml> l> pageTracker._trackPageview(); } catch(err) {} ml> ._trackPageview(); } catch(err) {} ml> l>