Create an exe file using VB6 without any forms

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
Rick RudolphAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
tone28Connect With a Mentor Commented:
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
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.

All Courses

From novice to tech pro — start learning today.