Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] Suggestions

Thread Tools Rate Thread Display Modes
Old 03-29-2019, 08:13 AM
nopcode nopcode is online now
Registered User
Join Date: 07-19-2016
Posts: 3
VisBuildCmd should honor no output flag

I have a secondary build file that has steps where the output from commands are suppressed; when called from my main build file using the mode setting "console app (visbuildcmd.exe), any CMD.exe line steps ignore the "read program output from" set to "none". In other words, my main build script gets all of the output that should have been suppressed in the secondary child script. It looks like visbuildcmd.exe is ignoring this setting and just directly piping all standard output right back to the main program.

This has the effect of both slowing down the build process horribly and cluttering the output window to where important information scrolls off.

I don't want to suppress everything (which I could by clearing the main "Capture output" flag), but that is my current work around.
Reply With Quote
Old 04-03-2019, 11:47 PM
kinook kinook is online now
Join Date: 03-06-2001
Location: Colorado
Posts: 5,995
Interesting, I believe it has always worked this way -- it's actually due to the fact that the CreateProcess API writes its output to the current console window if STARTF_USESTDHANDLES is not specified in STARTUPINFO. In v10, the handle is specified with output none to allow this.
Reply With Quote
Old 05-30-2019, 07:24 PM
kinook kinook is online now
Join Date: 03-06-2001
Location: Colorado
Posts: 5,995
This had an unintended side effect of suppressing output and prompts (for instance, with a pause statement in a batch file). In the latest release, you'll need to set

Application.Options.AlwaysCaptureConsoleOutput = True

in a Run Script step so that the handle is specified with output none.
Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 05:56 PM.

Copyright 1999-2023 Kinook Software, Inc.