• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 439
  • Last Modified:

Make exe from command line


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 ?

1 Solution
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?

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 : )
Vin32Author Commented:

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!
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.


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 : )
   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

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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Amazon Web Services - Basic

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now