Click here to Skip to main content
11,412,516 members (75,335 online)
Click here to Skip to main content

VBMake Script

, 27 Jun 2000
Rate this:
Please Sign up or sign in to vote.
Script for automating and speeding Visual Basic builds
<!-- Link to source file download -->
  • Download source files - 5 Kb
  • <!-- Add the rest of your HTML here -->


    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


    1. Microsoft Windows Scripting 5.0+ (comes with Win98 & Win2000, download for NT 4.0 and Win95 at
    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'.


    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

    United States United States
    No Biography provided
    Group type: Organisation

    1 members

    Comments and Discussions

    Generalmonitor text file size, if 2 MB then run a Batch File Pin
    virenmerdraib at 11-Oct-07 19:55
    membervirenmerdraib11-Oct-07 19:55 
    Questionpause in a vb script Pin
    Eltjo.schol at 3-May-06 1:56
    memberEltjo.schol3-May-06 1:56 
    QuestionVB6: Reached Limit Cannot Create Any More Control For This Form Pin
    steventry at 21-Jan-06 16:32
    membersteventry21-Jan-06 16:32 
    QuestionCould u do it Pin
    sadirov at 3-Dec-05 17:09
    membersadirov3-Dec-05 17:09 
    QuestionSSTab Saving???? Pin
    truonghanca at 8-Nov-05 8:30
    membertruonghanca8-Nov-05 8:30 
    Generalabout mailimg list Pin
    Anonymous at 20-Jun-05 6:51
    sussAnonymous20-Jun-05 6:51 
    Generalh r u . Pin
    Anonymous at 31-Dec-04 18:02
    sussAnonymous31-Dec-04 18:02 
    Generalh r u Pin
    Anonymous at 31-Dec-04 18:02
    sussAnonymous31-Dec-04 18:02 
    GeneralARP packet analyzer Pin
    estebitancf at 4-Nov-04 1:39
    memberestebitancf4-Nov-04 1:39 
    QuestionHow to pass arguments to a batch file from a VBScript Pin
    sankha_2025 at 2-May-04 1:29
    membersankha_20252-May-04 1:29 
    AnswerRe: How to pass arguments to a batch file from a VBScript Pin
    Jeff Prochaska at 29-Sep-04 6:11
    memberJeff Prochaska29-Sep-04 6:11 
    Questionhow to create a menu control in VB? Pin
    donghuong at 15-Apr-04 21:22
    memberdonghuong15-Apr-04 21:22 
    GeneralPacket analyzer Pin
    Bongani at 1-Feb-04 21:42
    memberBongani1-Feb-04 21:42 
    GeneralEntering PIN Pin
    Anonymous at 18-Jun-02 23:11
    memberAnonymous18-Jun-02 23:11 
    Generalhi how r u Pin
    Anonymous at 1-Jul-01 22:18
    memberAnonymous1-Jul-01 22:18 
    GeneralRe: hi how r u Pin
    vjij at 1-Nov-01 6:00
    membervjij1-Nov-01 6:00 
    GeneralRe: hi how r u Pin
    BABATUNDE at 12-Feb-02 5:13
    memberBABATUNDE12-Feb-02 5:13 
    GeneralRe: hi how r u Pin
    Rmars at 10-Apr-02 7:37
    memberRmars10-Apr-02 7:37 
    GeneralRe: hi how r u Pin
    Marshal at 31-May-02 2:42
    memberMarshal31-May-02 2:42 
    GeneralRe: hi how r u Pin
    Anonymous at 3-Jul-03 2:40
    sussAnonymous3-Jul-03 2:40 
    GeneralRe: hi how r u Pin
    jwjames at 8-Jan-04 8:35
    memberjwjames8-Jan-04 8:35 

    General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

    Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

    | Advertise | Privacy | Terms of Use | Mobile
    Web03 | 2.8.150427.1 | Last Updated 28 Jun 2000
    Article Copyright 2000 by Kinook Software
    Everything else Copyright © CodeProject, 1999-2015
    Layout: fixed | fluid