Answer the question
In order to leave comments, you need to log in
How to get two values from one array into different variables using PowerShell?
I get an array from a JSON file, it looks like this:
D:\test2\o.transform.config D:\test2\Web.config
D:\test2\o3.transform.config D:\test2\Web3.config
There may be more values.
$transformConfigs = $componentSelect.transform_config | Select-Object source, target
Foreach ($transformConfig in $transformConfigs)
{
$transformConfig
}
D:\test2\o.transform.config D:\test2\Web.config
$a = D:\test2\o.transform.config
$b = D:\test2\Web.config
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question