How to execute a PowerShell script from Notepad++

前端 未结 5 1012
说谎
说谎 2021-02-06 03:44

I am using Notepad++ to edit a PowerShell file and want to be able to execute that file from inside Notepad++.

How can I set that up?

5条回答
  •  不思量自难忘°
    2021-02-06 04:30

    See Using Notepad++ to Compile and Run Java Programs and replace "javac" with "C:Windows\system32\WindowsPowerShell\v1.0\powershell.exe" (or your path to PowerShell). (Caveat: I'm not a Notepad++ user and haven't tried this.)

    That said, I'd just use PowerShell ISE (installs with PowerShell) or one of the other dedicated PowerShell IDEs instead.

提交回复
热议问题