PowerTip: Run a PowerShell Script with Space in the Path

Doctor Scripto

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

0 comments

Discussion is closed.

Feedback usabilla icon