5,692,513 members and growing! (18,344 online)
Email Password   helpLost your password?
Languages » VBScript » Visual Basic     Intermediate

VBMake Script

By Kinook Software

Script for automating and speeding Visual Basic builds
VBScript, Windows, Dev

Posted: 14 May 2000
Updated: 27 Jun 2000
Views: 147,220
Bookmarked: 18 times
Announcements
Loading...



Search    
Advanced Search
Sitemap
15 votes for this Article.
Popularity: 5.49 Rating: 4.67 out of 5
0 votes, 0.0%
1
0 votes, 0.0%
2
0 votes, 0.0%
3
0 votes, 0.0%
4
6 votes, 100.0%
5
  • Download source files - 5 Kb
  • Introduction

    VBMake.vbs provides critical functionality that is missing from the Visual Basic IDE/compiler. It is a VBScript make utility for intelligently building Microsoft Visual Basic projects, only building projects when the target executable is older than the source files. It works well in conjunction with the Visual Build build management tool.

    This script parses an individual VBP file (or all VBP files in a VBG) for its target and dependencies (the project file, all constituent source files and their binary equivalents [i.e.: frx, etc.]), and invokes VB from the command-line to build the project only if the target executable does not exist or is older than any of the dependencies. It does not consider references as a dependency. If the target is not specified in the VBP, VBMake will fail with an error.

    Usage: cscript VBMake.vbs [/V ] [/F] [/N] [/S]

    Any output is echoed to standard output; returns exitcode of 0 if successful or < 0 if any error occurs.

    The first parameter must be a valid VB project file (VBP) or group filename (VBG) and the following optional flags are supported (non-case-sensitive):

    • /F => forces all targets to be rebuilt regardless of dependency dates.
    • /N => displays commands but does not execute. Useful for debugging.
    • /S => Suppress default output (only displays error output)
    • /V => full path to VB compiler (looks for compiler if not passed). Use to override for newer version of VB (/m and /out flags must be supported by newer versions for calling from command-line)

    e.g.: cscript VBMake.vbs MyProjects.vbg /s

    Dependencies:

    1. Microsoft Windows Scripting 5.0+ (comes with Win98 & Win2000, download for NT 4.0 and Win95 at http://msdn.microsoft.com/scripting)
    2. Microsoft Visual Basic 5.0+. If SourceSafe is also installed, is recommended that you disable SourceSafe integration in VB on the build machine to prevent the possibility of dialog boxes requiring user input when building. This is done by selecting Add-ins|Add-In Manager, selecting Source Code Control in the listbox and unchecking 'Load on Startup'.

    License

    This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

    A list of licenses authors might use can be found here

    About the Author

    Kinook Software



    Location: United States United States

    Other popular VBScript articles:

    Article Top
    Sign Up to vote for this article
    You must Sign In to use this message board.
    FAQ FAQ Noise ToleranceSearch Search Messages 
     Layout  Per page   
     Msgs 1 to 21 of 21 (Total in Forum: 21) (Refresh)FirstPrevNext
    Generalmonitor text file size, if 2 MB then run a Batch Filemembervirenmerdraib19:55 11 Oct '07  
    Questionpause in a vb scriptmemberEltjo.schol1:56 3 May '06  
    QuestionVB6: Reached Limit Cannot Create Any More Control For This Formmembersteventry16:32 21 Jan '06  
    QuestionCould u do itmembersadirov17:09 3 Dec '05  
    GeneralSSTab Saving????membertruonghanca8:30 8 Nov '05  
    Generalabout mailimg listsussAnonymous6:51 20 Jun '05  
    Generalh r u .sussAnonymous18:02 31 Dec '04  
    Generalh r usussAnonymous18:02 31 Dec '04  
    GeneralARP packet analyzermemberestebitancf1:39 4 Nov '04  
    GeneralHow to pass arguments to a batch file from a VBScriptmembersankha_20251:29 2 May '04  
    GeneralRe: How to pass arguments to a batch file from a VBScriptmemberJeff Prochaska6:11 29 Sep '04  
    Generalhow to create a menu control in VB?memberdonghuong21:22 15 Apr '04  
    GeneralPacket analyzermemberBongani21:42 1 Feb '04  
    GeneralEntering PINmemberAnonymous23:11 18 Jun '02  
    Generalhi how r umemberAnonymous22:18 1 Jul '01  
    GeneralRe: hi how r umembervjij6:00 1 Nov '01  
    GeneralRe: hi how r umemberBABATUNDE5:13 12 Feb '02  
    GeneralRe: hi how r umemberRmars7:37 10 Apr '02  
    GeneralRe: hi how r umemberMarshal2:42 31 May '02  
    GeneralRe: hi how r usussAnonymous2:40 3 Jul '03  
    GeneralRe: hi how r umemberjwjames8:35 8 Jan '04  

    General General    News News    Question Question    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

    PermaLink | Privacy | Terms of Use
    Last Updated: 27 Jun 2000
    Editor: Chris Maunder
    Copyright 2000 by Kinook Software
    Everything else Copyright © CodeProject, 1999-2008
    Web17 | Advertise on the Code Project