August 28th, 2012

PowerTip: Use PowerShell to Help Build Paths

Doctor Scripto
Scripter

Summary: Use Windows PowerShell to build a path to the system32 directory.

Hey, Scripting Guy! Question I need to build a path to the Windows\system32 directory. How can I do this?

 

Hey, Scripting Guy! Answer Join-Path -path (get-item env:\windir).value -ChildPath system32

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.