220-802 · Question #893
Which of the following will occur if %temp% is executed from the run command?
The correct answer is D. The current user's temporary folder will be opened. The %temp% environment variable resolves to the current logged-in user's temporary folder, not a system-wide temp location.
Question
Which of the following will occur if %temp% is executed from the run command?
Options
- AThe operating system's temporary folder will be opened.
- BApplications located in the %temp% folder will be executed.
- CApplications will be deleted in the %temp% folder.
- DThe current user's temporary folder will be opened.
How the community answered
(56 responses)- A4% (2)
- C2% (1)
- D95% (53)
Why each option
The %temp% environment variable resolves to the current logged-in user's temporary folder, not a system-wide temp location.
There is no single OS-wide temporary folder opened by %temp%; the variable is scoped to the currently logged-in user's profile.
Entering %temp% in Run opens File Explorer at the folder path; it does not execute any applications stored there.
Running %temp% performs no deletion; it simply navigates to and opens the folder.
The %temp% environment variable is user-specific and expands to the current user's temporary directory, typically C:\Users\<username>\AppData\Local\Temp. When entered in the Run dialog, Windows resolves the variable and opens that user's personal temp folder in File Explorer. This is distinct from a system-wide temp path.
Concept tested: Windows environment variable %temp% behavior
Source: https://learn.microsoft.com/en-us/windows/win32/shell/user-environment-variables
Topics
Community Discussion
No community discussion yet for this question.