What Is %TEMP%

Content on WhatAnswers is provided "as is" for informational purposes. While we strive for accuracy, we make no guarantees. Content is AI-assisted and should not be used as professional advice.

Last updated: April 10, 2026

Quick Answer: %TEMP% is a Windows environment variable that points to the temporary folder location on a user's computer, typically at C:\Users\[Username]\AppData\Local\Temp. This directory stores temporary files created by applications, installers, and the OS, allowing programs to programmatically access it without hardcoding paths. The variable has been a core Windows feature since NT 3.1 (1993).

Key Facts

Overview

%TEMP% is a Windows environment variable that stores the file path to the system's temporary folder. When you type %TEMP% in the Windows Run dialog, File Explorer, or command-line interface, Windows automatically expands it to the full path, typically C:\Users\[Username]\AppData\Local\Temp. This folder serves as a designated storage location for temporary files created by applications, system processes, web browsers, and installers.

The %TEMP% variable has been a fundamental part of Windows since Windows NT 3.1 was released in 1993. It provides a standardized way for developers to access the temporary folder without needing to know the exact file path structure, which varies between Windows versions and user configurations. By using the %TEMP% variable, software can store cache files, installer data, session information, and temporary documents in a central, consistent location that Windows expects and manages.

How It Works

The %TEMP% variable functions as an environment variable that Windows interprets and expands to the actual folder path when referenced. Here's how it operates:

Key Comparisons

Aspect%TEMP%Other Temporary Locations
Standard UseUniversal variable for all applications%TMP%, LOCALAPPDATA, Downloads folder (less standardized)
User AccessFull read/write permissions for user accountSystem folder requires admin; AppData is user-specific but permanent
Automatic CleanupIncluded in Windows Disk CleanupManual deletion required for most user folders; system files rarely auto-clean
Storage SizeTypically 2-10 GB per user (uncontrolled growth)Downloads 1-5 GB; AppData grows indefinitely with applications
Access MethodCommand line, PowerShell, programming codeFile path varies; no universal variable for some locations

Why It Matters

The %TEMP% environment variable remains essential to Windows administration, software development, and system maintenance. Whether you're troubleshooting software installations, recovering disk space, or writing scripts, understanding how %TEMP% works provides insight into how modern operating systems manage resources efficiently.

Sources

  1. Environment Variable - WikipediaCC-BY-SA-4.0
  2. Microsoft Docs - Managing Disk SpaceCC-BY-4.0
  3. Microsoft Support - Windows Disk Cleanup TipsCC-BY-4.0

Missing an answer?

Suggest a question and we'll generate an answer for it.