windows PowerShell 3 的文件扩展名
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/12107462/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-09 09:50:07 来源:igfitidea点击:
File extension for PowerShell 3
提问by ComFreek
All of us probably know .bat
for Batch files.
我们所有人可能都知道.bat
批处理文件。
But what is the file extension for PowerShell 3scripts?
但是PowerShell 3脚本的文件扩展名是什么?
I found .ps1
and some other endings but they're only for version 1.
我发现了.ps1
和其他一些结局,但它们仅适用于版本 1。
回答by Mike Shepard
PowerShell files for all versions are .ps1 (or .psm1, .psd1, etc.).
所有版本的 PowerShell 文件都是 .ps1(或 .psm1、.psd1 等)。