When a build is complete, VBLM can pass command line arguments to VB via the command line parameters box. For your convenience this topic summarizes the arguments that the various versions of VB recognize and respond to.

Note: When starting VB, VBLM automatically places the name of the newly built project first on the command line and appends whatever entries you've placed in the command line parameters box to the end. If you wish to override this and control the placement of the projectname, you can do so by inserting "%Project%" (without the quotes) in the desired location in the command line parameters box. VBLM will then insert the project name in the same location when it constructs the command line.

All Versions

vb*[.exe] [[{/run | /r} projectname] {/make | /m } projectname]{/cmd argument | /c argument}]

projectname The name of your project (.vbp) file.

/run or /r Tells Visual Basic to compile and run projectname using the arguments stored in the Command Line Arguments field of the Make tab of the Project Properties dialog box. You can run more than one project using this command. Replace projectname with projectgroupname.

/make or /m Tells Visual Basic to compile projectname and make an executable (.exe) file, using the existing settings of the Path, EXEName, and Title properties of the APP object. You can compile and make an executable (.exe) file from more than one project using this command. Replace of the projectname with projectgroupname.

/cmd or /c Puts argument in the Command Line Arguments field in the Make tab of the Project Properties dialog box. When used, this must be the last switch on the command line.

Versions 4 + Only

vb*[.exe] {/d compileconst} [{/makedll | /l} projectname]

/makedll or /l Tells Visual Basic to compile projectname and make an in-process ActiveX server (.dll) file from it.

/d or /D Tells Visual Basic which values to use for conditional compilation constants when making an .EXE with the /make switch or an ActiveX DLL with the /makedll switch.

compileconst The names and values of conditional compilation constants used in the project file.

 

Version 5+ Only

vb*[.exe] [{/runexit} projectname][{/m} or {/runexit} projectname /out filename}][{/m}][/sdi] or [/mdi]

/runexit Tells Visual Basic to run projectname. If for any reason the file is changed in the process of running, all changes are ignored and no dialog appears on exit to design mode.

filename The name of the file to receive errors when you build an executable using the /m or /runexit option.

/out Allows you to specify a file to receive errors when you build using the /m or /runexit option. The first error encountered is placed in this file with other status information. If you do not use the /out option, command line build errors are displayed in a message box. This option is useful if you are building multiple projects.

/? Lists the available Command Line arguments.

/sdi Changes the Visual Basic environment to SDI (Single Document Interface) mode. Visual Basic remains in SDI mode until you change it. You can change to MDI mode by using the /mdi argument or by clearing the SDI Development Environment option in the Advanced tab of the Options dialog box.

/mdi Opens Visual Basic in MDI (Multiple Document Interface) mode. Visual Basic remains in MDI mode until you change it. You can change to SDI mode by using the /sdi argument or by selecting the SDI Development Environment option in the Advanced tab of the Options dialog box. MDI mode is the default.