Solved

Create an exe file using VB6 without any forms

Posted on 2006-11-05
1
212 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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
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…

758 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now