Changing the Location of the Temporary Files Folder

You can improve EWF performance on a run-time image by changing the temporary files location to a different partition that is not EWF-protected. By default, temporary Internet files are stored in the %USERPROFILE%\Local Settings\Temporary Internet Files folder.

To change the location of the temporary files folder

  1. Modify one or both of the following registry keys on your run-time image:

    Key: HKEY_CURRENT_USER\Software\Microsoft\Windows\Current Version\Explorer\User Shell Folders
    Name: Cache
    Type: REG_EXPAND_SZ
    Value: <path_to_a_folder_on_an_unprotected_volume>

    - or -

    Key: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders
    Name: Cache
    Type: REG_EXPAND_SZ
    Value: <path_to_a_folder_on_an_unprotected_volume>

  2. You can also redirect the TMP and TEMP folders to an unprotected volume by modifying the following registry settings:

    Key: HKEY_CURRENT_USER\Environment
    Name: TEMP
    Type: REG_SZ
    Value: <path_to_a_folder_on_an_unprotected_volume>

    Key: HKEY_CURRENT_USER\Environment
    Name: TMP
    Type: REG_SZ
    Value: <path_to_a_folder_on_an_unprotected_volume>

For more information about how to add this registry key to your configuration, see Adding Registry Data to a Configuration in Windows XP Embedded Studio Help.

See Also

EWF Performance Considerations | EWF Design Considerations | Configuring the System Pagefile of a Run-Time Image

Last updated on Wednesday, October 18, 2006

© 2006 Microsoft Corporation. All rights reserved.