Kinook Software Forum

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

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 06-05-2008, 02:12 PM
Rogier Rogier is online now
Registered User
 
Join Date: 09-09-2004
Location: the Netherlands
Posts: 40
Wait for user to press a key

When running scripts from the command line (with VisBuildCmd.exe) I would like to wait for a keypress or something in case of failure, so I can see the error before the window closes.

I tried doing this with running %DOSCMD% pause, but that doesn't work. I see "press any key to continue" but it closes immediately.

Is there a way to do this properly?
Reply With Quote
  #2  
Old 06-05-2008, 02:28 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
Configure the Run Program step to Read program output from 'None' and uncheck the Hide application window option.

Also, if VisBuildCmd.exe is run from a Command Prompt, the last build output will be shown in the Command Prompt window.

Or, you could add a Wait step to wait (and use Ctrl+C or Ctrl+Break to abort the wait).

Or use a Run Script step that calls MsgBox or InputBox (see the Prompt.bld sample).

Another option would be to open the log file on build failure (for instance, using a Run Program with command like %DOSCMD% start "%LOGFILE%" or Notepad "%LOGFILE%").
Reply With Quote
Reply

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 09:59 AM.


Copyright © 1999-2023 Kinook Software, Inc.