小编SAU*_*NGH的帖子

通过shell脚本在windows中导出/设置环境变量

有一个script.sh文件

 set FABRIC_CFG_PATH=<some path>
 set CORE_PEER_LOCALMSPID=<some id>
Run Code Online (Sandbox Code Playgroud)

如果我在 Windows 中运行此脚本,则不会设置环境变量。而如果使用 cmd 方法设置 env,例如,在 windows cmd 上 set FABRIC_CFG_PATH=<some path> 它工作正常。

那么如何通过shell脚本文件在windows中设置env呢?

powershell cmd export set environment-variables

6
推荐指数
1
解决办法
2万
查看次数

标签 统计

cmd ×1

environment-variables ×1

export ×1

powershell ×1

set ×1