Solved

Create an exe file using VB6 without any forms

Posted on 2006-11-05
1
215 Views
Last Modified: 2010-04-30
I have written a small program in VB6 which reads in a list of files from a text file, and then moves them to different sub directories based upon their names. I run this program with a command button. Everything works fine, but what I really want to be able to do is to run this program from a DOS command line without having any forms load. I simply want the code to run.

Can someone please tell me the steps to go through to create this type of exe?

Thank you in advance, Rick
0
Comment
Question by:rrudolph
1 Comment
 
LVL 6

Accepted Solution

by:
tone28 earned 125 total points
ID: 17876168
Remove all code from Forms and put into .bas files (modules) Set your starting routine as Sub Main(). You can do this by right clicking on your Project title in the upper right hand corner.

Tone
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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.

Question has a verified solution.

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

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

809 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