Make exe from command line

Posted on 2001-09-13
Last Modified: 2007-11-27

I am trying to make an exe from the command line. The usual documented syntax is:
vb6.exe /m  vbp_file_name  output_exe_file_name

I have successfully tried an alternate version:
vb6.exe /m  code_file_name  output_exe_file_name

where the code file can be a form or a bas file or a cls file.

But this alternate syntax works only when the entire code is contained in one form/bas/cls file.

Is there a way to use multiple code files in this command line without the use of a project file ?

Question by:Vin32
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 44

Expert Comment

ID: 6480305
what do you think a VBP file is used for?  the Project file contains the full list of all of the pieces that make up the entire project (all of the Forms, classes MODuels etc).

Why do you NOT wnat to use the VBP file?

Expert Comment

ID: 6481315

I agree with Arthur_Wood.  Using a vbp file WILL save you ALL the trouble and make life easier.  Moreover, through the vbp file you could save the verison number, proggy description, version number, trademarks, optimisation, blah blah blah...

Try to use it instead : )

That's it!

glass cookie : )

Author Comment

ID: 6481863

Using the vbp file is no big deal. Agreed that it makes life simpler, but it's just that I'm curious ... please tell me if it's possible, and how, and u stand to gain a 100 points!
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!


Accepted Solution

glass_cookie earned 100 total points
ID: 6482024

Sorry... I doubt you can do it.  The best you could do is something like:

vb5.exe /m C:\Proggys\MyProj.vbp MyFile.exe


vb5.exe /m C:\Proggys\MyProj.vbp

and it'll compile to that of the EXE name specified in the vbp file.

That's it!

glass cookie : )
LVL 44

Expert Comment

ID: 6482176
   What you originally asked IS NOT POSSIBLE.  From the Command line,the general form is:

vb6.exe /m  <source_file> <output_file_name>

where <Source_file> is a SINGLE file, either a .frm, a .cls, a .bas OR a .VBP (which in turn collectively points at a collection of .frm's, .cls's and/or .bas's).

You cannot explicitly list sevearl source files directly on the command line.

Arthur Wood

Expert Comment

ID: 6536284

Please finalise this question, even if nobody gave you a satisfactory answer - in that case just let me know and I will be happy to refund your points to you.

If someone did give you a satisfactory answer, please accept the comment as the answer. If you are having problems doing that let me know.

Please do *not* ignore this request. To the other participants in the thread - if no response is forthcoming alert me and I will take action.


Community Support Admin

Featured Post

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question