Search found 11479 matches

by jvierra
Sat Nov 18, 2017 5:56 pm
Forum: Windows PowerShell
Topic: Get-ChildItem list txt file and more!
Replies: 3
Views: 108

Re: Get-ChildItem list txt file and more!

So you are not asking about a form but how to query a folder on a server for a file in multiple locations.

Just use a wild card.

Get-ChildItem \\server\users\*\Success.txt -recurse
by jvierra
Sat Nov 18, 2017 12:02 pm
Forum: Windows PowerShell
Topic: Get-ChildItem list txt file and more!
Replies: 3
Views: 108

Re: Get-ChildItem list txt file and more!

This is a good learning project for both PowerShell and PowerShell Studio. Start by designing you form. Add the code required to the form events. To learn how to use PowerShell with forms start with the Sapien InfoCenter here: https://info.sapien.com/index.php/guis There are numerous videos on YouTu...
by jvierra
Sat Nov 18, 2017 11:57 am
Forum: Windows PowerShell
Topic: Ping Until Find
Replies: 1
Views: 100

Re: Ping Until Find

Here is a simple template for doing this in a loop:

Code: Select all

Get-Content servers.txt |
    ForEach-Object{
        Test-Connection $_
    }
See:
help Get-Content -Online
help Test-Connection -Online
help Send-MailMessage -Online
by jvierra
Thu Nov 16, 2017 5:52 pm
Forum: Windows PowerShell
Topic: Powershell create multicast listener
Replies: 6
Views: 137

Re: Powershell create multicast listener

Here is a quick linear conversion: function StartListener{ Param( [Parameter(Mandatory)] $IPAddress, [Parameter(Mandatory)] $Port ) $client = [System.Net.Sockets.UdpClient]::New() $client.ExclusiveAddressUse = $false; $localEp = [System.Net.IPEndPoint]::New([IPAddress]::Any, $Port); $client.Client.S...
by jvierra
Thu Nov 16, 2017 5:14 pm
Forum: Windows PowerShell
Topic: Powershell create multicast listener
Replies: 6
Views: 137

Re: Powershell create multicast listener

Convert the C# example to PowerShell.
by jvierra
Thu Nov 16, 2017 4:51 pm
Forum: Windows PowerShell
Topic: Powershell create multicast listener
Replies: 6
Views: 137

Re: Powershell create multicast listener

Search for c# examples of how to open a UDP port as a listener. There are quite a few out there.
by jvierra
Wed Nov 15, 2017 11:41 am
Forum: PowerShell GUIs
Topic: Design of pstudio winforms apps re. pester
Replies: 8
Views: 241

Re: Design of pstudio winforms apps re. pester

Pester is open source. You could modify it to extract and apply tests to scriptblocks. This would avoid unnecessary design changes to how a form is built. The current version of Pester does not assume event driven issues so it may not work when the functions are called from a form as the variables I...
by jvierra
Tue Nov 14, 2017 8:22 pm
Forum: PowerShell GUIs
Topic: Moving Button Location
Replies: 3
Views: 126

Re: Moving Button Location

All properties that take a drawing point object will take a string pair.
by jvierra
Tue Nov 14, 2017 8:03 pm
Forum: PowerShell GUIs
Topic: Moving Button Location
Replies: 3
Views: 126

Re: Moving Button Location

$button.location = '30,50' # x,y