Click here to Skip to main content
Click here to Skip to main content

VBMake Script

By , 27 Jun 2000
 
  • 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

    No Biography provided

    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.
    Search this forum  
        Spacing  Noise  Layout  Per page   
    Generalmonitor text file size, if 2 MB then run a Batch Filemembervirenmerdraib11 Oct '07 - 18:55 
    Hi i want a script which can monitor file size fo a text file , if it goes up 2 MB then run a Batch File automatically.
     
    Pleas Help me Thanks in Advance
     
    Virendra
    virendradsharma@gmail.com
     
    Virendra
    virendradsharma@gmail.com
    Questionpause in a vb scriptmemberEltjo.schol3 May '06 - 0:56 
    I've got a visual basic script and want to make a pause between 2 actions. because i am new to visual basic i don't know where to look so i hope someone can help me.
     
    here is the code:
     
    Dim obj, handle
    Set objFSO = CreateObject("Scripting.FileSystemObject")
    If objFSO.FileExists("c:\exported\main_script.sca") Then
    Set obj = CreateObject("Scala.Publisher")
    obj.GoPublish "c:\exported\main_script.sca", "ftp://removed:removed@nm2.somewebserver.nl/player", "c:\exported\log.txt", "", "c", handle
    Else
    End If

     
    Between these lines i need a pause for about 5 minutes.
     
    Set obj = Nothing
     
    Set objFSO = CreateObject("Scripting.FileSystemObject")
     
    If objFSO.FileExists("c:\exported\main_script.sca") Then
    Set objFSO = CreateObject("Scripting.FileSystemObject")
    objFSO.DeleteFile("c:\exported\main_script.sca")
     
    Else
    End If

     

    if anyone can help me i would be very happy
     

    QuestionVB6: Reached Limit Cannot Create Any More Control For This Formmembersteventry21 Jan '06 - 15:32 
    Smile | :) I;m now doing a project by using the sstab in a form. Currently, I have a problem because I cannot use the control such as textbox or label because it reached its limit. Therefore, what would I do to continue this project in this form. If can, I don't want to create another form, because by using the tab in single form, i think it;s more convinient for users.
     
    Thank You.
     
    Thank You
    QuestionCould u do itmembersadirov3 Dec '05 - 16:09 
    hi mohit i saw ur projects and really u r a good programer
    i also have a university project about Artificial intelligence, its about searching for the best result, so i take the puzzle of 15 elements but the computer should solve it and find the best result by declaring nodes and every node has cost and parent and index of elements,so we should use data structure by adding the new nodes to the fringe and pop a node from it and find the paths ex: if the empty buton is on index 15 so we can move up and left so the computer creates 2 new nodes and insert it to the fringe then pop one and expand it and so on..so if u can help me i ll apreciate for u..
    sincerly yours
    QuestionSSTab Saving????membertruonghanca8 Nov '05 - 7:30 
    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 listsussAnonymous20 Jun '05 - 5:51 
    how to mail to the mailserver using visual basic 6.0?
    plz give coding.
    Generalh r u .sussAnonymous31 Dec '04 - 17:02 
    hiiiiiiii
    Generalh r usussAnonymous31 Dec '04 - 17:02 
    hiii
    GeneralARP packet analyzermemberestebitancf4 Nov '04 - 0:39 
    Hi,
    i'm making a vb application,and i need to capture ARP packets that my computer receives,i need to extract the sender protocol address(sender IP) and the target protocol address(target IP) from the packet and compare it with two addresses that i know. ,so anybody knows how can i do my application? Thank you,i hope you can help me as soon as posible and excuse me for my english.
    regards from Spain.
    QuestionHow to pass arguments to a batch file from a VBScriptmembersankha_20252 May '04 - 0:29 
    I work in a software company.Actually I want to run a batch file which only hold a simple command "net send "ipaddress" "message" ".and from a *.asp front end page containing vbscript any user want to send a message to a particular ip address can be able to type ipaddress and message and when he press the submit button this two arguments will pass to the batch file containing "net send ip message" command.and the batch file will run.and to do it i used the following vbscript.
     
    Set WshShell = WScript.CreateObject("WScript.Shell")
    WshShell.Run "C:\gy31.bat"
    WScript.Sleep 200
    WshShell.AppActivate "gy31.bat"
    WScript.Sleep 200
    WshShell.SendKeys "192.168.133.220"&" "&"hi"
    set WshShell = Nothing
     
    but it is not working.
    so if possible please help me in this regard.

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

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