Setting a global PowerShell variable from a function where the global variable name is a variable passed to the function

前端 未结 7 1284
北荒
北荒 2020-12-04 16:17

I need to set a global variable from a function and am not quite sure how to do it.

# Set variables
$global:var1
$global:var2
$global:var3

function foo ($a,         


        
7条回答
提交回复
热议问题