August 7th, 2012

PowerTip: Run a PowerShell Script with Space in the Path

Doctor Scripto
Scripter

Summary: Learn how to run a script with a space in the path. Question: How do I run a script with a space in the path?

Answer 1: PS > c:my` foldermyscript.ps1

Answer 2: PS> &(“c:my  foldermyscript.ps1”) Question: What is the easiest way to create an array?

Answer 1: $array = “1”,”2”,”3”,”4”

Answer 2: $array = 1..4

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.