Search found 91 matches

by miketartaglia
Fri Mar 08, 2019 7:47 am
Forum: Windows PowerShell
Topic: ERROR: New-PSDrive : Multiple connections to a server or shared resource by the same user
Replies: 5
Views: 1479

ERROR: New-PSDrive : Multiple connections to a server or shared resource by the same user

I am copying one file from about 10 different servers with the below foreach code. I receive this error at some point during the copies, but I can't figure out why I'm getting it. I have googled and found this to be issues for others, but could not find any solution that would help. Any help would b...
by miketartaglia
Tue Mar 05, 2019 1:55 pm
Forum: PowerShell GUIs
Topic: Progress Bar issues
Replies: 3
Views: 309

Re: Progress Bar issues

Thank you! That helped big time :D
by miketartaglia
Mon Mar 04, 2019 10:45 am
Forum: PowerShell GUIs
Topic: Progress Bar issues
Replies: 3
Views: 309

Progress Bar issues

Hi, I have a marquee progressbar overlay I want to display on a form when someone clicks the button to download some files. I only want the progressbar to be visible and animate when this is going on but it only becomes visible and animated after the files are downloaded which defeats the purpose. L...
by miketartaglia
Fri Feb 22, 2019 9:09 am
Forum: PowerShell GUIs
Topic: XML data to a label.text property
Replies: 38
Views: 1735

Re: XML data to a label.text property

That made me see the light. The problem was with me not assigning the $BindingURL.text to a variable after the user clicked the search button. Now I remember how to do it. thanks for the guidance.
by miketartaglia
Thu Feb 21, 2019 12:35 pm
Forum: PowerShell GUIs
Topic: XML data to a label.text property
Replies: 38
Views: 1735

Re: XML data to a label.text property

I don't know where that code is. What you are talking about is a text box Named BindingURL. I enter text in this box and I assumed that the variable is set then. Please correct me if I'm wrong.
by miketartaglia
Thu Feb 21, 2019 11:48 am
Forum: PowerShell GUIs
Topic: XML data to a label.text property
Replies: 38
Views: 1735

Re: XML data to a label.text property

Please post the code that sets that variable? This variable ->>> $detailsLBL $buttonSEARCH_Click= { #TODO: Place custom script here [xml]$file = (Get-Content 'c:\test\programdata\Server Configuration.xml') $detailsLBL.Text = ($file.SelectSingleNode("//Instance[BindingHostName='$BindingURL']").Name) }
by miketartaglia
Thu Feb 21, 2019 10:50 am
Forum: PowerShell GUIs
Topic: XML data to a label.text property
Replies: 38
Views: 1735

Re: XML data to a label.text property

No that doesn't make any sense. What has a value of "TEXT"? detailsLBL - This is the label where I want the value of the XML code you wrote to show as the .NAME at the end of the XML line. What switches to NULL? detailsLBL switches to NULL instead of the .NAME above. What code have you changed? Non...
by miketartaglia
Thu Feb 21, 2019 10:32 am
Forum: PowerShell GUIs
Topic: XML data to a label.text property
Replies: 38
Views: 1735

Re: XML data to a label.text property

The problem is that it still shows up as NULL or blank. It starts off with a value of "TEXT" (I set that up for troubleshooting) after I click the button (the code you have already seen), it switches to NULL. So we probed that your code works, but I can not make the value of that specific output to ...
by miketartaglia
Thu Feb 21, 2019 7:30 am
Forum: PowerShell GUIs
Topic: XML data to a label.text property
Replies: 38
Views: 1735

Re: XML data to a label.text property

The textbox is named BindingURL. I thought that was considered a variable when using it in code. My mistake. So since $BindingURL is NULL that makes sense. I think I am back in rookie status then ;)
by miketartaglia
Thu Feb 21, 2019 6:46 am
Forum: PowerShell GUIs
Topic: XML data to a label.text property
Replies: 38
Views: 1735

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 Config...