Create a file "scriptname.config" and copy the below xml content and save.
<?xml
version="1.0"?>
<configuration>
<appSettings>
<add
key="folderName" value="powershellFolder"
/>
<add
key="versionNumber" value="v001" />
</appSettings >
</configuration>
Open powershell prompt , navigate to the config file folder and execute the below script.
$path =
".\scriptname.config"
$global:properties = @{}
$config = [xml] ( gc $path )
foreach ($addNode in
$config.configuration.appSettings.add) {
$global:
properties[$addNode.Key] = $addNode.Value
}
get the values from the key value list "properties" as shown below.
$
properties["
folderName "]
$
properties["
versionNumber "]
Live Hadoop Training by Real Time Working IT Industry Professional Trainer Having more than 12 Years of Industry Exp. Trained more than 5000 Students Classroom and Online.
ReplyDeleteHadoop Training
Thanks for Information.
ReplyDeleteDevops Training Institute in Hyderabad
Devops Training Institute in Ameerpet
Devops Online Training in Hyderabad
Devops Online Training in Ameerpet