Solved

Create an exe file using VB6 without any forms

Posted on 2006-11-05
1
216 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: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
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 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…
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…

749 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