Kinook Software Forum

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

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 02-16-2006, 09:08 AM
marcstober marcstober is online now
Registered User
 
Join Date: 01-25-2005
Location: Boston, MA
Posts: 3
Check in Visual Build Pro Already Running

Is there a simple way to fail a build if another instance of Visual Build Pro is already running (even if it's under another login)?

Ideally it would check if the other build was actually running, not just VBP was open, but that's not required.

I've tried using global macros, which works OK, unless the VBP process gets killed, in which case successive scheduled builds think the first one is still running.

Thanks, Marc
Reply With Quote
  #2  
Old 02-16-2006, 01:07 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
The attached sample demonstrates using WMI to check for multiple instances of VisBuildPro.exe and exiting the build if more than 1 are found (update the Project script code to use VisBuildCmd.exe if building with the console app). This doesn't check if the other instances are building (WMI doesn't provide window captions, otherwise you could check for '[building]' in the caption if building with the GUI app).
Attached Files
File Type: bld checkinstance.bld (904 Bytes, 1333 views)
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 05:05 PM.


Copyright © 1999-2023 Kinook Software, Inc.