Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] Frequently Asked Questions > Scripting

Thread Tools Rate Thread Display Modes
Old 06-19-2009, 01:39 PM
kinook kinook is online now
Join Date: 03-06-2001
Location: Colorado
Posts: 6,001
How to determine if build is running in GUI or console app

Use the Application object's Context property.

For instance, within a VBScript Run Script step:
If Application.Context = vbldContextGUI Then
	Builder.LogMessage "Running in GUI"
ElseIf Application.Context = vbldContextCommandLine Then
	Builder.LogMessage "Running in console"
	Builder.LogMessage "Running via object model"
End If
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 On

All times are GMT -5. The time now is 07:13 AM.

Copyright 1999-2023 Kinook Software, Inc.