Search found 101 matches
- Wed Feb 20, 2019 6:53 pm
- Forum: PowerShell GUIs
- Topic: XML data to a label.text property
- Replies: 38
- Views: 9187
Re: XML data to a label.text property
My original question was how to get that output of just the Name from that Instance node into the $detailsLBL control text property. It still doesn't work. It still shows up as BLANK. $buttonSEARCH_Click= { #TODO: Place custom script here [xml]$file = (Get-Content 'c:\test\programdata\Server Configu...
- Wed Feb 20, 2019 5:15 pm
- Forum: PowerShell GUIs
- Topic: XML data to a label.text property
- Replies: 38
- Views: 9187
Re: XML data to a label.text property
My apologies, the post never saved for some reason. Below is the code for the node. I hope this is what you are looking for. <Instance> <Name>billybob</Name> <Version>8.26.0.0</Version> <InstalledVersion>8.26.0.0</InstalledVersion> <LicenseKey>111-222-333-44444</LicenseKey> <AppPoolName>billybob</Ap...
- Wed Feb 20, 2019 2:10 pm
- Forum: PowerShell GUIs
- Topic: XML data to a label.text property
- Replies: 38
- Views: 9187
Re: XML data to a label.text property
I just posted the XML node
- Wed Feb 20, 2019 1:07 pm
- Forum: PowerShell GUIs
- Topic: XML data to a label.text property
- Replies: 38
- Views: 9187
Re: XML data to a label.text property
xml Servers
--- -------
version="1.0" encoding="utf-8" Servers
--- -------
version="1.0" encoding="utf-8" Servers
- Wed Feb 20, 2019 12:09 pm
- Forum: PowerShell GUIs
- Topic: XML data to a label.text property
- Replies: 38
- Views: 9187
Re: XML data to a label.text property
this is the output you requested
xml Servers
--- -------
version="1.0" encoding="utf-8" Servers
xml Servers
--- -------
version="1.0" encoding="utf-8" Servers
- Wed Feb 20, 2019 11:13 am
- Forum: PowerShell GUIs
- Topic: XML data to a label.text property
- Replies: 38
- Views: 9187
Re: XML data to a label.text property
$detailsLBL is still equal to BLANK
I'm wondering if the .name is not an element for some reason? It worked fine in powershell ISE.
I'm wondering if the .name is not an element for some reason? It worked fine in powershell ISE.
- Wed Feb 20, 2019 9:23 am
- Forum: PowerShell GUIs
- Topic: XML data to a label.text property
- Replies: 38
- Views: 9187
Re: XML data to a label.text property
I already tried that before. the fact is I am getting nothing back. I start with detailsLBL.text with a default value of 'TEXT'. When it gets to reassign a value it assigns it as blank.
- Wed Feb 20, 2019 8:11 am
- Forum: PowerShell GUIs
- Topic: XML data to a label.text property
- Replies: 38
- Views: 9187
XML data to a label.text property
To help you better we need some information from you. *** Please fill in the fields below. If you leave fields empty or specify 'latest' rather than the actual version your answer will be delayed as we will be forced to ask you for this information. *** Product, version and build: 2019 5.6.159 32 or...
- Tue Jan 23, 2018 5:19 am
- Forum: PowerShell
- Topic: Get-Unique not working as expected
- Replies: 2
- Views: 2056
Re: Get-Unique not working as expected
I was looking at it all wrong apparently. Thank you. that should work just fine.
- Mon Jan 22, 2018 7:29 am
- Forum: PowerShell
- Topic: Get-Unique not working as expected
- Replies: 2
- Views: 2056
Get-Unique not working as expected
I have a bunch of files in a folder from a few years back that I want to parse through and list just the years. The catch is I only want to list each year once so I can use that list in another part of my script. What happens is it only lists one year. Here is the code: $items = get-childitem -Path ...