您的位置首页百科问答

2020年后,windows环境下写脚本,应该用.ps1还是.bat?

2020年后,windows环境下写脚本,应该用.ps1还是.bat?

的有关信息介绍如下:

2020年后,windows环境下写脚本,应该用.ps1还是.bat?

Windows 的 Docker 使用 Powershell。

如果使用 WSL 内的 Docker,使用 Bash。

除非你的操作系统是 Windows Server 2003 R2 或更老的机器,最好不要使用批处理。