Click here to Skip to main content
Licence 
First Posted 14 May 2000
Views 172,620
Bookmarked 22 times

VBMake Script

By Kinook Software | 27 Jun 2000
Script for automating and speeding Visual Basic builds

1

2

3

4
6 votes, 100.0%
5
4.67/5 - 15 votes
μ 4.67, σa 0.77 [?]
  • 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



    United States United States

    Member


    Organisation
    1 members



    Sign Up to vote   Poor Excellent
    Add a reason or comment to your vote: x
    Votes of 3 or less require a comment

    Comments and Discussions

     
    You must Sign In to use this message board. (secure sign-in)
     
    Search this forum  
     FAQ
        Noise  Layout  Per page   
      Refresh
    Generalmonitor text file size, if 2 MB then run a Batch File Pinmembervirenmerdraib19:55 11 Oct '07  
    Questionpause in a vb script PinmemberEltjo.schol1:56 3 May '06  
    QuestionVB6: Reached Limit Cannot Create Any More Control For This Form Pinmembersteventry16:32 21 Jan '06  
    QuestionCould u do it Pinmembersadirov17:09 3 Dec '05  
    QuestionSSTab Saving???? Pinmembertruonghanca8:30 8 Nov '05  
    Hi all,
    I am a new learner in Visual Basic 6. I have a quick question about SSTab.
     
    After creating SSTab, I let the user select some Checkboxes and OptionButtons. So how can I save the user settings so when I run the project again, my project still keeps those settings.
     
    Thanks for your help.
    Generalabout mailimg list PinsussAnonymous6:51 20 Jun '05  
    Generalh r u . PinsussAnonymous18:02 31 Dec '04  
    Generalh r u PinsussAnonymous18:02 31 Dec '04  
    GeneralARP packet analyzer Pinmemberestebitancf1:39 4 Nov '04  
    QuestionHow to pass arguments to a batch file from a VBScript Pinmembersankha_20251:29 2 May '04  
    AnswerRe: How to pass arguments to a batch file from a VBScript PinmemberJeff Prochaska6:11 29 Sep '04  
    Questionhow to create a menu control in VB? Pinmemberdonghuong21:22 15 Apr '04  
    GeneralPacket analyzer PinmemberBongani21:42 1 Feb '04  
    GeneralEntering PIN PinmemberAnonymous23:11 18 Jun '02  
    Generalhi how r u PinmemberAnonymous22:18 1 Jul '01  
    GeneralRe: hi how r u Pinmembervjij6:00 1 Nov '01  
    GeneralRe: hi how r u PinmemberBABATUNDE5:13 12 Feb '02  
    GeneralRe: hi how r u PinmemberRmars7:37 10 Apr '02  
    GeneralRe: hi how r u PinmemberMarshal2:42 31 May '02  
    GeneralRe: hi how r u PinsussAnonymous2:40 3 Jul '03  
    GeneralRe: hi how r u Pinmemberjwjames8:35 8 Jan '04  

    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.

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