BongJae Jeong
BongJae Jeong

Reputation: 73

Powershell ProgramFiles directory script

The script to run is this.

string script = "powershell -executionpolicy unrestricted C:\Program Files (x86)\TEST\test.ps1"

But the error says (x86) is not ~

How to I solve this problem?

Upvotes: 0

Views: 53

Answers (1)

guiwhatsthat
guiwhatsthat

Reputation: 2434

Solution was:

string script = "powershell -executionpolicy unrestricted -file 'C:\Program Files (x86)\TEST\test.ps1'"

Upvotes: 3

Related Questions