如何从Powershell命令行在Notepad ++中打开文件?从PowerShell打开Notepad ++
回答
里面powershell我可以简单地使用启动并获得一般结果
打开python文件wi记事本++这里是我所做的。
Start notepad++ ex1.py
这将启动notepad ++并加载文件ex1.py,假定您与.py文件在同一目录中。你可以通过添加完整路径名来改变它
start notepad++ c:\users\you\desktop\files\ex1.py
希望这有助于!
很好的回答! – stt106 2015-09-25 12:53:09
在更大范围内,“Start”可以用任何参数打开任何'.exe'程序。 – 2016-10-03 19:49:43
因为默认路径包含空格,所以必须引用exe的路径。但是,因为PowerShell也是一种脚本语言。通过自身的字符串被简单地评价为一个字符串,例如: -
C:\ PS> 'Hello world'
Hello world
所以,你必须告诉PowerShell中要调用由名为字符串命令。对于您所使用的电话运营商&
如:
C:\ PS> & 'C:\Program Files (x86)\Notepad++\notepad++.exe'
,或者记事本+ +是在您的路径:
C:\ PS> notepad++
,或者如果你在同一目录的EXE:
C:\ PS> .\notepad++
好的。假设我在一个目录中有一些py文件。我如何在PowerShell中的Notepad ++中打开它们? – Dombey 2013-02-14 22:28:45
- 1. PowerShell和打开Excel
- 2. PowerShell打开gzip流
- 3. 使用PowerShell从SharePoint打开Excel文档
- 4. 从NotePad ++上的行开始删除点
- 5. 如何从Powershell打开Powershell控制台窗口
- 6. 如何从PowerShell脚本打开另一个PowerShell控制台
- 7. 使用PowerShell打开文件
- 8. 打开内存凭证powershell
- 9. PowerShell打开Outlook,使可见
- 10. 如何打开PowerShell中
- 11. 从notepad ++执行gcc?
- 12. 使用Notepad ++ RunMe插件运行程序后保持shell打开
- 13. Notepad ++在左边显示打开的文件
- 14. Ctrl +'(撇号)重构! Notepad ++打开时绑定dosn't工作吗?
- 15. Powershell打开和编辑HTML文件
- 16. Powershell打开窗口(来自Java.Runtime.exec)
- 17. Powershell作业在打开SqlConnection时冻结
- 18. 通过PowerShell在Firefox中打开URL?
- 19. Powershell:打开HTM并另存为XLS
- 20. 运行manage.py后保持PowerShell打开runserver
- 21. 使用Powershell打开SSRS项目
- 22. PowerShell:打开和关闭“Num Lock”。
- 23. 从powershell打开管理员命令提示符
- 24. 蟒蛇-m从Windows PowerShell中打开IPython的笔记本
- 25. JavaScript从打开的窗口打开器打开的colorbox?
- 26. Powershell打开文本文件打印出口
- 27. Powershell的LogonScript如何保持刚开始的进程中打开
- 28. 打开在IE网址的阵列,IE是否打开或不使用的PowerShell
- 29. 如何检查Notepad ++是否使用Powershell安装
- 30. 从SSRS打开URL
@martineau:实际上,这个问题对于从PowerShell打开Notepad ++中的任何文件都很有帮助。只是说.. – 2015-04-14 15:03:26
我们可以只编辑这个规范问题不是Python的具体?它与python无关...... – 2016-10-03 19:48:36