View Single Post
Old 06-19-2009, 12:39 PM
kinook kinook is online now
Join Date: 03-06-2001
Location: Colorado
Posts: 5,900
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