开发者

how to ref. a value from another powershell script?

开发者 https://www.devze.com 2023-01-05 09:12 出处:网络
suppose i have 2 powershell scripts, t开发者_StackOverflow社区est1.ps1 and test2.ps1 #test1.ps1 $a=\"test1\"

suppose i have 2 powershell scripts, t开发者_StackOverflow社区est1.ps1 and test2.ps1

#test1.ps1

$a="test1"

##################

#test2.ps1

echo $a

how to ref. $a in test2.ps1 from test1.ps1?


In Script 1:

Set-Variable -Name a -Value "test1" -Scope Global
0

精彩评论

暂无评论...
验证码 换一张
取 消