How to execute a PowerShell script from Notepad++

前端 未结 5 1084
说谎
说谎 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:21

    You can run a saved script from "Run" -> "Run" menu in Notepad++ with the following command:

    powershell.exe -noexit -command . \"$(FULL_CURRENT_PATH)\"
    

提交回复
热议问题