Closed Luksys5 closed 4 years ago
If you double clicked on a .ps1 file, it would also likely open in Notepad. So, this is kinda the expected behavior. If you want to execute the script instead, you'll either need to setup your system to execute .ps1 files by default or take a different approach with the script runner.
Try specifying the script path as the path to the Powershell executable (C:\WINDOWS\system32\WindowsPowerShell\v1.0\powershell.exe) and your script as an argument. You could also possibly create a .bat file that starts your PS script and execute that.
Hey, I have a script and I call it with post build actions. The problem is that it opens file in notepad and doesn't run it normally I have tried with single path separator() and double path separator(\) but results are still same
Thanks for any help