Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] Third Party Tools
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 12-20-2019, 07:42 PM
mevans mevans is offline
Registered User
 
Join Date: 04-21-2015
Posts: 32
How do I see PowerShell script progress?

I'm using a PowerShell action. It works just fine with Visual Build and I can send data to it and get it back into VBP. My problem with this particular script is that it may run for a very long time (a few minutes to over a half hour). If I run it in PowerShell, I can turn on verbose and see some output so I know it's alive. When I run it from VBP, I don't get any feedback. It's reassuring to know something is happening.

How can I see the output while it's running in VBP?

This particular script starts in a specific folder and has PowerShell script in VBP (it's not calling a separate file). Inside the script, I dot include some external PowerShell files that are needed for the script to run in VBP.

I've tried Options / Show application window. That puts up a window, but I don't see any output.
Reply With Quote
  #2  
Old 12-20-2019, 10:59 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
I'm seeing the output from a long-running PowerShell script as it executes. See attached.
Attached Files
File Type: bld PSProgress.bld (688 Bytes, 4553 views)
Reply With Quote
  #3  
Old 12-23-2019, 08:16 PM
mevans mevans is offline
Registered User
 
Join Date: 04-21-2015
Posts: 32
Sorry for the bother. I have these two lines in my script:

Code:
  #$VerbosePreference = "continue"
  #$VerbosePreference = "SilentlyContinue"
I had been debugging some things and switched it to SilentlyContinue for a bit and didn't catch that switch on a commit

I had intended to commit the script with "continue" enabled so that I'd see the output in Visual Build. Once I set it to "continue", the VERBOSE output showed up just fine in the Visual Build output window and in the log file. All is well
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 09:23 PM.


Copyright © 1999-2023 Kinook Software, Inc.