cannot execute files in powershell

whateverdude

Proper
Jun 21, 2018
68
0
140
I can't run any .exe files in powershell the way i can with cmd.

For ex. if you have a.exe in the directory you are and type a.exe in cmd it will run it. Powershell won't.

Any tips?
 
Solution
use a full path for the executable. Instead of "a.exe" use "C:\myDir\powershell\a.exe" Put the path in a variable at the beginning so you can change it in one place.

TRENDING THREADS