Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 8583

use the value globally in different scripts.

$
0
0

Hello all,

I am writing a script1.ps1 and script2.ps1. and want to store the value in a variable in script1.ps1  and use that value during the execution of script2.ps1 . is it possible. ?

such that :

steps want: 1) ./script1.ps1  which saves the value in variable "A"

2) ./script2.ps1 $A

Please help me  to find out to use the value globally in different scripts.

 

 

 


Viewing all articles
Browse latest Browse all 8583

Trending Articles