April 14th, 2013

PowerTip: Use PowerShell to Find the Temp Folder Path

Doctor Scripto
Scripter

Summary: Find the path to the temporary folder.

Hey, Scripting Guy! Question How can I use Windows PowerShell to find the path to the temporary folder?

Hey, Scripting Guy! AnswerUse the Temp variable, and obtain its value from the Env: PS drive.

$env:TEMP 

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.