Search found 14 matches

by Pallas
Wed Jun 20, 2018 12:22 am
Forum: PowerShell GUIs
Topic: Button - Start Job, how to multiple arguments, how to work with objects
Replies: 33
Views: 1491

Re: Button - Start Job, how to multiple arguments, how to work with objects

That is great! Thank you! I will add this asap. All the best.
by Pallas
Sun Jun 17, 2018 5:02 am
Forum: PowerShell GUIs
Topic: Button - Start Job, how to multiple arguments, how to work with objects
Replies: 33
Views: 1491

Re: Button - Start Job, how to multiple arguments, how to work with objects

or you must poll the table in SQS to get the info. This should cause the call to wait until the backup has completed. I suspect that currently your job is completing almost instantaneously so there can be no progress output. You are doing an incredible job. Thank you for your help. I do want to pul...
by Pallas
Sat Jun 16, 2018 12:14 pm
Forum: PowerShell GUIs
Topic: Button - Start Job, how to multiple arguments, how to work with objects
Replies: 33
Views: 1491

Re: Button - Start Job, how to multiple arguments, how to work with objects

Hi, thank you for your help. I never said I was a professional developer. The whole point of using a second job and a sql query to ask the MS SQL Server about the progress, which it answers perfectly, was that the backup db job, no matter how I ran it, does NOT produce any increment, any result, tha...
by Pallas
Sat Jun 16, 2018 11:37 am
Forum: PowerShell GUIs
Topic: Button - Start Job, how to multiple arguments, how to work with objects
Replies: 33
Views: 1491

Re: Button - Start Job, how to multiple arguments, how to work with objects

I have a working version, using the Button - start Job, which is fine with me. Now I would love to know how to get some sort of progress from that -UpdateScript { Param ($Job) $Counter = 1 + $Counter $results = Receive-Job -Job $Job -Keep I added a Counter to have some value that counts up at least....
by Pallas
Sat Jun 16, 2018 10:34 am
Forum: PowerShell GUIs
Topic: Button - Start Job, how to multiple arguments, how to work with objects
Replies: 33
Views: 1491

Re: Button - Start Job, how to multiple arguments, how to work with objects

Thank you for the insight. I compared a completly new form with the Button Start Job and my old one. They behave exactly the same. That is, the $timerJobTracker_Tick is halted (when running debug in Power Shell Studio) when the form loads. And then never again, no matter what. Even complete blank fo...
by Pallas
Fri Jun 15, 2018 7:22 am
Forum: PowerShell GUIs
Topic: Button - Start Job, how to multiple arguments, how to work with objects
Replies: 33
Views: 1491

Re: Button - Start Job, how to multiple arguments, how to work with objects

Not sure I follow. I see the exact same amount of events in my new form with Start Job as in my old form. Which event is missing?
1.JPG
1.JPG (104.75 KiB) Viewed 272 times
2.JPG
2.JPG (84.04 KiB) Viewed 272 times
by Pallas
Fri Jun 15, 2018 5:22 am
Forum: PowerShell GUIs
Topic: Button - Start Job, how to multiple arguments, how to work with objects
Replies: 33
Views: 1491

Re: Button - Start Job, how to multiple arguments, how to work with objects

The breakpoint at

Code: Select all

 $timerJobTracker_Tick={
	Update-JobTracker
}
is reached before the main form loads. NOT when the Job Button click event is raised. I am puzzled.
I attached the code because this seems very strange.
BackDB_Jobs.psf
(166.29 KiB) Downloaded 12 times
by Pallas
Fri Jun 15, 2018 3:57 am
Forum: PowerShell GUIs
Topic: Button - Start Job, how to multiple arguments, how to work with objects
Replies: 33
Views: 1491

Re: Button - Start Job, how to multiple arguments, how to work with objects

Hi, Job Tracker helps run the backup smoothly. And backup files are generated. But the script never enters the completedscript or updatescript. A breakpoint at Invoke-Command -ScriptBlock $psObject.UpdateScript -ArgumentList $psObject.Job (function Update-JobTracker) is never reached when running "D...
by Pallas
Thu Jun 14, 2018 7:42 am
Forum: PowerShell GUIs
Topic: Button - Start Job, how to multiple arguments, how to work with objects
Replies: 33
Views: 1491

Re: Button - Start Job, how to multiple arguments, how to work with objects

Thank you jvierra, I fixed my errors that you pointed out. Working with the Button - Start Job was not getting me anywhere. So I returned to the sample code. Right now I am trying to run two jobs parallel. Asking SQL Server about the percentage of the backup job completion and write that to the rich...
by Pallas
Thu Jun 14, 2018 5:33 am
Forum: PowerShell GUIs
Topic: Button - Start Job, how to multiple arguments, how to work with objects
Replies: 33
Views: 1491

Re: Button - Start Job, how to multiple arguments, how to work with objects

Hi, I was on that argument list, but I would have missed the Param. I am still very new to this, but it works. Sort off. I ditched the data grid view, because it only returned errors and I managed to make the rich text box to scroll down. When backing up larger databases the application will close b...