Kinook Software Forum

Kinook Software Forum (https://www.kinook.com/Forum/index.php)
-   Scripting (https://www.kinook.com/Forum/forumdisplay.php?f=35)
-   -   How to determine if build is running in GUI or console app (https://www.kinook.com/Forum/showthread.php?t=4060)

kinook 06-19-2009 12:39 PM

How to determine if build is running in GUI or console app
 
Use the Application object's Context property.
http://www.kinook.com/VisBuildPro/Ma...xtproperty.htm

For instance, within a VBScript Run Script step:
Code:

If Application.Context = vbldContextGUI Then
        Builder.LogMessage "Running in GUI"
ElseIf Application.Context = vbldContextCommandLine Then
        Builder.LogMessage "Running in console"
Else
        Builder.LogMessage "Running via object model"
End If



All times are GMT -5. The time now is 07:17 PM.


Copyright © 1999-2023 Kinook Software, Inc.